Stage banner
The announcement of a chapter: a stage and its name on one line, or, large, a stage above a title and a line — a sober eyebrow by default, a stage call that slams in for the arcade flavour.
- Domaine
- Blocs de page et gabarits
- Niveau de support
- Taille
- 0.9 kB gzip, budget 0.6 kB
- Qui l'utilise
- 1 fichiers des produits et sites en production l'importent Compté dans l'inventaire daté du 2026-11-23.
import { StageBanner } from "@krizaka/ui/stage-banner";Web uniquement — React, depuis @krizaka/ui/stage-banner. Bêta : son API peut encore changer à une version mineure.
- Mobile · n/a. Part of the storytelling kit of scroll-driven site pages; a phone app tells its first steps with Onboarding.
- Bureau · n/a. A public site's page, not a window of the Mac app.
Pourquoi il est là. Its only users were products that left the organisation (2026-10-29): kept until the next major's audit decides.
Quand l’utiliser
- Before a chapter's heading on a told page or a tour (“Step 02 · Payments”).
- To open a section that turns the story (
size="lg"): a final chapter, a reveal.
Quand ne pas l’utiliser
- A notice that this deployment is a development version (data can be reset, not a commercial offer).À la place : Environment notice
- Progress through a form or a checkout.À la place : Stepper
- A plain eyebrow above a section's heading.À la place : Page
Installation
Installer
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Importer
import { StageBanner } from "@krizaka/ui/stage-banner";Exemples
Before a chapter
A stage and its name, sober then in the arcade flavour.
A section's opening
size="lg": the stage, a title and a line — sober, then a final round.
Props
Announces a chapter: a stage and its name on one line, or (size="lg") a stage, a title and a line, centred.
| Prop | Type | Défaut | Description |
|---|---|---|---|
stagerequis | ReactNode | — | Where the reader is: “Step 02”, “Chapter 3”, “Final round”. |
brand | string | — | A brand scope (sovkora → .brand-sovkora). |
name | ReactNode | — | sm: the name of the chapter, beside the stage. |
size | "sm" | "lg" | sm | sm: one line, before a chapter's heading. lg: centred, the stage above a title and a line — a section's opening. |
subtitle | ReactNode | — | lg: one line under the title. |
title | ReactNode | — | lg: the title under the stage. |
titleAs | "h2" | "h3" | "p" | p | The element of the lg title: a heading when the banner opens a section that has none. |
variant | StoryVariant | default | default: a sober eyebrow. arcade: the stage call — a skewed plate that slams in, a light that sweeps it. |
Accessibilité
- A paragraph by default; the large title can be a heading (
titleAs). - Its entrance plays once in a stage and never under
prefers-reduced-motion.
Bonnes pratiques
- Few words: the stage (“Step 02”) and a name of one or two words.
- With
size="lg"and no heading after it, passtitleAs="h2"so the section keeps its heading.
Composants liés
Générée depuis le code de @krizaka/ui 5.3.4 : son meta.ts, ses exemples et ses types.Modifier cette documentation sur GitHub