Scroll story
Sections that change as you scroll.
feat/date-range-picker
date-range-picker.tsx+ onKeyDown={moveByWeek}+ aria-describedby={hint}- tabIndex={-1}Aiko Tanaka · 3 files · 12 tests added
01
Write the change
Work in a branch. Every component ships with its states, its keyboard behaviour and its tests.
Checks on #482
- Light and darkpassed
- Desktop and phonepassed
- Reduced motionpassed
- Keyboard and screen readerpassed
02
Check it everywhere
Light and dark, desktop and phone, motion on and off. The same checks run on every pull request.
Release 2.4.0
readyChangelog written, checks green, no open blockers.
Ship release03
Ship it calmly
A release is one button with a checklist behind it. If anything is in the way, it says exactly what.
When to use
- Walking through a product story.
When not to use
- Short pages.
Installation
pnpm dlx shadcn@latest add @caliper/scroll-story
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
ScrollStory
3 props
Keyboard
- ↓
- Moves to the next item or value.
- ↑
- Moves to the previous item or value.
Accessibility
It is built on native elements and keeps aria-label, aria-hidden and aria-current in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/scroll-story.mdThe index of every part is at /llms.txt.