DatePicker
A versatile date and time picker with support for various modes, constraints, and localized formatting.
Install: pnpm add-component Fields/DatePicker
Basic date picker
The default mode allows selecting a year, month, and day.
Date & time picker
Enable the clock picker by setting the mode to "datetime".
Date range constraints
Restrict selection using min and max properties.
Readonly state
Prevents the user from opening the picker.
API
modelValue(string): The selected date/time string (ISO or yyyy-MM-dd).label(string): Label for the input field.mode('date' | 'datetime'): Whether to show just the calendar or add the time picker clock.placeholder(string): Placeholder text when empty.min(string): Minimum allowed date.max(string): Maximum allowed date.readonly(boolean): Disable user interaction.