Basic Usage
Displaying the Selection
Give the DatePicker aname to store the selected date in state, then reference it with {{ }} interpolation. The button itself shows the formatted date, and you can display it elsewhere too:
In a Form
DatePicker works naturally alongside other form controls, syncing its value to state via thename prop like any other input.
API Reference
DatePicker Parameters
Button text when no date is selected.
State key for the selected date (stored as an ISO string).
Action(s) triggered when the date changes.
Additional Tailwind CSS classes.
Protocol Reference
DatePicker