Skip to main content

# DatePicker()

    function DatePicker(props: DatePickerProps): Element;

Date picker field component with React Hook Form integration. Wraps the Dimsum DatePicker component with form state management and validation.

## Parameters​

### props​

`DatePickerProps`

DatePicker component props

## Returns​

`Element`

## Example​

    <Form onSubmit={handleSubmit}>
      <DatePicker
        name="birthDate"
        labelText="Birth Date"
        rules={{ required: 'Birth date is required' }}
      />
    </Form>