Sections
All-AccessNewA city stair race: questions stencilled on landings, answers one line per riser; the camera climbs to the open flight
Use it as the FAQ of a race, a walk or any event that climbs: questions stencilled on landing fronts, answers one line per riser, and the camera climbs to the flight that is open.
pnpm dlx shadcn@latest add @motionkit-pro/risernpx shadcn@latest add @motionkit-pro/riseryarn dlx shadcn@latest add @motionkit-pro/riserbunx --bun shadcn@latest add @motionkit-pro/riserRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Riser } from "@/components/sections/riser"
export default function Page() {
return (
<Riser
content={{
eyebrow: "City Stair Run · 4 October",
title: "Questions people ask first.",
items: [
{
id: "bib",
step: "Step 0",
question: "How do I get a bib?",
answer: ["Enter online by 1 October.", "Age 14 and up.", "Collect it the day before."],
},
],
bib: { href: "/enter", number: "0001", action: "Take a bib", note: "Walking counts." },
}}
/>
)
}Every answer is exactly three lines, one per riser, each under about 56 characters; questions
stay under about 32. Fonts come from --rs-display, --rs-stencil and --rs-sans.
climb (default): the travelling camera up a limestone stair. Preview it with ?demo=default.painted: the same climb with every flight limewashed its own tint. Preview it with
?demo=painted.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<Riser content={{ title: "Your title" }} />| Key | Type | Notes |
|---|---|---|
items | { id, step, question, answer: [string, string, string], tint?, light? }[] | One flight each; tint and light are for painted. |
eyebrow, title | ReactNode | On the sky; rs-mark styles a wordmark in the eyebrow. |
bib | { href, number, action, band?, note? } | The race bib, a real link. |
listLabel | string | Accessible name of the list. |
The bib keeps its Tyvek white with dark print and a steel safety pin in every palette.
Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<Riser
colors={{ lit: "#caf4ff", shade: "#c9af90", stencil: "#741400", tape: "#00a988", sky: "#fce5e3" }}
/>use-prefers-reduced-motion, fx-runtime.stack: columns stack, text first. Vertical scroll is never blocked.
A flat front elevation of the stair: the open flight is simply taller with its three answer lines, and the camera never moves.
pnpm size).Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
—
A flat front elevation of the stair: the open flight is simply taller with its three answer lines, and the camera never moves.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)