Date reel
A reel that rolls through dates.
When to use
- Choosing a date with a tactile feel.
When not to use
- Far dates.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/date-reel
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
DateReel
6 props
PropTypeDefault
value *string—
onValueChange *(value: string) => void—
labelstring"Date"
minYearnumber2000
maxYearnumber2040
classNamestring—
Keyboard
- ↑
- Moves to the previous item or value.
- ↓
- Moves to the next item or value.
- PageUp
- Moves by a larger step, or to the previous page.
- PageDown
- Moves by a larger step, or to the next page.
- Home
- Jumps to the first item or the minimum.
- End
- Jumps to the last item or the maximum.
Accessibility
It exposes spinbutton and group semantics, with aria-label, aria-valuenow, aria-valuemin, aria-valuemax, aria-valuetext and aria-hidden kept in step with state.
Motion
- State changes animate with the library's shared durations and curves, so its timing matches every other part.
- Under reduced motion each change lands on its end state without movement; nothing is hidden or skipped.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/date-reel.mdThe index of every part is at /llms.txt.