Date Picker
Choose a constrained date range with preset shortcuts.
Single date
Installation
Install the shared package once in your Exact app. This version is a beta.
bun add --exact @rightui/ui@0.4.0-beta.4
The Exact compiler requires Bun 1.4.2, regardless of which package manager installs the package.
Complete the font, app metadata and root provider setup (required for both installation methods).
Import
use DatePicker, DateRangePicker, DateRangePreset from "@rightui/ui"
Usage
Import DatePicker, DateRangePicker from @rightui/ui. Store its value in state and update it through the provided action callback.
API Reference
Properties from the component source. State lives in your component; actions receive the updated value.
DatePicker.id
string
DatePicker.value
string
DatePicker.initialYear
number
DatePicker.initialMonth
number
DatePicker.disabled
bool
DatePicker.change
action
DateRangePicker.id
string
DateRangePicker.low
string
DateRangePicker.high
string
DateRangePicker.initialYear
number
DateRangePicker.initialMonth
number
DateRangePicker.minimum
string
DateRangePicker.maximum
string
DateRangePicker.disabledDates
string[]
DateRangePicker.disabledWeekends
bool
DateRangePicker.disabled
bool
DateRangePicker.narrow
bool
DateRangePicker.reduced
bool
DateRangePicker.presets
DateRangePreset[]
DateRangePicker.change
action