A date selection component with calendar popover, validation, and accessibility features. Integrates with forms and supports custom validation, disabled dates, and error display. Uses the Brazilian Portuguese locale by default.
<DatePicker name="birthday" label="Data de nascimento" value={date} setValue={setDate} helpMessage="Selecione sua data de nascimento" isRequired errorMessage="Data inválida" isDateUnavailable={dateStr=>newDate(dateStr) < newDate()} />
Description
A date selection component with calendar popover, validation, and accessibility features. Integrates with forms and supports custom validation, disabled dates, and error display. Uses the Brazilian Portuguese locale by default.
Component
Example