Date Picker
StableA field component that allows users to pick a date from a calendar popover.
Examples
Basic Usage
tsx
import { DatePicker } from "@siberui/react"
export function DatePickerDemo() {
const [date, setDate] = React.useState<Date | undefined>(new Date())
return (
<DatePicker
label="Date of Birth"
value={date}
onChange={setDate}
/>
)
}Neon Variant
tsx
<DatePicker variant="neon" label="Execution Date" />API Reference
| Property | Description | Type | Default |
|---|---|---|---|
| value | The controlled date value. | Date | - |
| onChange | Event handler called when date changes. | (date?: Date) => void | - |
| variant | Visual style for trigger and calendar. | "default" | "neon" | "glass" | - |
| label | Label text. | string | - |
| error | Error state message. | string | boolean | - |