DatePicker
Customized version of @mui/x-date-pickers/DatePicker
Props
- label - (required) Label for the DatePicker
- name - (required) Name of the DatePicker
- control - (required) Control from react-hook-form
- fullWidth - (not required) if true then DatePicker will be full width
Usage
import { DatePicker } from 'react-componentry'
import { Control } from 'react-hook-form'
const App = () => {
const { control } = useForm()
return (
<DatePicker
control={control}
name="name"
label="Name"
/>
)
}