Skip to main content

DateSpinner

Allow users to select a specific date.

string

A unique identifier for the element.

string
Default: ""

Current selected value for the spinner.

This uses a date in YYYY-MM-DD format.

Was this section helpful?

(event: <"s-divider">) => void
(event: <"s-divider">) => void
(event: <"s-divider">) => void
(event: <"s-divider">) => void
Was this section helpful?

Code

<s-button command="--show" commandFor="date-spinner">
Show
</s-button>
<s-date-spinner
id="date-spinner"
value="2021-09-17"
onChange={onDateChange}
/>

Preview