ComponentsPage blocks & templates
Story scroll
One journey told while the visitor scrolls: a sticky scene that changes with each step, its light shifting colour, a guide bird and a pen stroke that joins the steps; one still plate under reduced motion.
- Domain
- Page blocks & templates
- Support level
- Size
- 1.5 kB gzip, budget 1.2 kB
- Who uses it
- No live product imports it yet Counted in the dated inventory of 2026-11-23.
import { StoryScroll, STORY_CUES, STORY_LIGHTS } from "@krizaka/ui/story-scroll";Web only — React, from @krizaka/ui/story-scroll. Beta: its API may still change in a minor version.
- Mobile · n/a. A scroll-driven showcase of a public web page; a phone app tells the same steps with Stepper or a paged list of native screens.
- Desktop · n/a. A public site's block, not a window of the Mac app.
Why it is here. The product pages' one journey told while scrolling (krizaka-internal#4693).
When to use
- A product page tells its one journey, three to five steps, on one object that changes.
- The steps must stay readable text while the scene illustrates them.
When not to use
- For steps the reader clicks through, with recordings.Use instead: Step showcase
- For a list of features side by side.Use instead: Card grid
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { StoryScroll, STORY_CUES, STORY_LIGHTS } from "@krizaka/ui/story-scroll";Examples
A document's journey
The file arrives, is read, a clause lights up, its reference attaches, you decide under a stamp.
Props
One sticky scene and the steps that pass beside it (beneath it on a phone).
| Prop | Type | Default | Description |
|---|---|---|---|
labelrequired | string | — | The section's accessible name. |
scenerequired | ReactNode | — | The scene: one object that changes with the step (decorative: hidden from assistive technology). |
stepsrequired | readonly StoryStep[] | — | Three to five steps, in the journey's order. |
guide | "falcon" | "owl" | "duck" | "flamingo" | "pigeon" | "lovebird" | "crane" | "magpie" | "beaver" | — | The bird that guides each step, beside the scene. |
Accessibility
- A named
section; each step is anh2, the step in view isaria-current="step". - The scene, the guide and the ticks are decorative (
aria-hidden). - Under reduced motion the scene is one plate at the journey's end and every step is fully legible.
Best practices
- Three to five steps, each title at most five words.
- The scene is markup that reacts to
data-cueanddata-cues(DocumentSceneof@krizaka/ui/product-pagefor a document); keep its words out of it. - A step's
lightis a brand or status role (accent,accent-2,danger…), never a colour. - Give the guide bird of the product (
owlreads documents); its mood follows the steps.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub