Skip to content
caliper ui pro docs

Scroll story

Sections that change as you scroll.

Pro
  1. 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.

  2. 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.

  3. Release 2.4.0

    ready

    Changelog written, checks green, no open blockers.

    Ship release

    03

    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

terminal
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
PropTypeDefault
steps *readonly StoryStep[]—
labelstring"Story"
classNamestring—

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.md

The index of every part is at /llms.txt.

More in Showpiece sections