DatePicker
Calendar-based date selection input with optional range and time support.
Examples
Basic
A simple native date input.
With Label
Date picker paired with a label.
Disabled
A date picker in disabled state.
Installation
pnpm add @rokle/components @rokle/tokensInstalls with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.
Usage
import { DatePicker } from "@rokle/components";import { DatePicker } from "@rokle/components";
export function Example() {
return <DatePicker />;
}API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | Date | null | - | Currently selected date. |
| onValueChange | (date: Date | null) => void | - | Called when date changes. |
| minDate | Date | - | Earliest selectable date. |
| maxDate | Date | - | Latest selectable date. |