Files
Checkmate/client/src/Components/v2/Inputs/TextInput.tsx
T

22 lines
535 B
TypeScript
Raw Normal View History

2025-10-03 12:45:21 -07:00
import { forwardRef } from "react";
2025-09-25 16:06:52 -07:00
import TextField from "@mui/material/TextField";
import type { TextFieldProps } from "@mui/material";
2025-10-03 12:56:52 -07:00
import { typographyLevels } from "@/Utils/Theme/v2/palette";
2025-10-03 12:45:21 -07:00
export const TextInput = forwardRef<HTMLInputElement, TextFieldProps>(
function TextInput(props, ref) {
return (
<TextField
{...props}
inputRef={ref}
2025-10-03 12:56:52 -07:00
sx={{
"& .MuiOutlinedInput-root": {
height: 34,
fontSize: typographyLevels.base,
},
}}
2025-10-03 12:45:21 -07:00
/>
);
}
);
TextInput.displayName = "TextInput";