Krizaka UI
Krizaka UI

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.

Web · ✓Mobile · n/aDesktop · n/aBetaBlocks
Support level
Beta
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 tailwindcss

Styles

@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).

PropTypeDefaultDescription
labelrequiredstring—The section's accessible name.
scenerequiredReactNode—The scene: one object that changes with the step (decorative: hidden from assistive technology).
stepsrequiredreadonly 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 an h2, the step in view is aria-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-cue and data-cues (DocumentScene of @krizaka/ui/product-page for a document); keep its words out of it.
  • A step's light is a brand or status role (accent, accent-2, danger…), never a colour.
  • Give the guide bird of the product (owl reads documents); its mood follows the steps.

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page