DatePicker
A component used to select a date through a dialog.

Name | Type | Description | Options |
---|---|---|---|
selected | string? |
The selected date. Defaults to today. | |
onChange | (string): void? |
A callback for changes. | |
visibleState | [boolean, (boolean) => void] |
A Boolean to control the visible state, and a callback to set the visible state as false when the dialog closes. |
|
inputMode | string? |
Whether to display the picker in inline (calendar) mode or spinner mode. Defaults to inline . |
inline | spinner |
- Use a smart default date for common selections.