mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-18 20:49:28 +00:00
feat: add number base converter
This commit is contained in:
18
src/components/common/TextField.tsx
Normal file
18
src/components/common/TextField.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { TextField } from "@mui/material";
|
||||
import { ComponentPropsWithoutRef, memo } from "react";
|
||||
|
||||
type Props = ComponentPropsWithoutRef<typeof TextField>;
|
||||
|
||||
const StyledComponent = (props: Props) => (
|
||||
<TextField
|
||||
fullWidth
|
||||
hiddenLabel
|
||||
size="small"
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
|
||||
export const Component = memo(StyledComponent);
|
||||
|
||||
export default Component;
|
||||
Reference in New Issue
Block a user