Date Picker
Choose a date from a calendar popover.
Preview
Import
import { DatePicker, DateRangePicker } from "@sigil-ui/components";Usage
<DatePicker placeholder="Pick a date" />Sub-components
This component includes the following parts:
<DateRangePicker>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | Date | — | The current controlled value. |
defaultValue | Date | — | Initial value when the component manages its own state. |
onValueChange | (date: Date | undefined) => void | — | Called when the user changes the value. |
placeholder | string | — | Hint shown before a value is entered. |
Token integration
| CSS Variable | Purpose |
|---|---|
--s-text-muted | Text muted |