2024-06-25 14:41:11 +05:30
|
|
|
import { TextField, Box } from "@mui/material";
|
2024-11-30 18:43:01 +05:30
|
|
|
import React from "react";
|
2024-06-25 14:41:11 +05:30
|
|
|
|
2024-11-30 18:43:01 +05:30
|
|
|
const TextInputField = React.forwardRef(
|
|
|
|
|
({ placeholder, value, setValue, onKeyDown }, ref) => {
|
|
|
|
|
return (
|
|
|
|
|
<Box className="d-flex flex-column py-3">
|
|
|
|
|
<label htmlFor="limit-input" className="text-left">
|
|
|
|
|
{placeholder} :-
|
|
|
|
|
</label>
|
|
|
|
|
<TextField
|
|
|
|
|
className="rounded h6 bg-white"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder={placeholder}
|
|
|
|
|
id="limit-input"
|
|
|
|
|
autoComplete="off"
|
|
|
|
|
value={value}
|
|
|
|
|
onChange={(e) => setValue(e.target.value)}
|
|
|
|
|
onKeyDown={onKeyDown}
|
|
|
|
|
inputRef={ref}
|
|
|
|
|
/>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
);
|
2024-06-25 14:41:11 +05:30
|
|
|
|
|
|
|
|
export default TextInputField;
|