Bird plate
The flock as a naturalist's plate: each bird a numbered figure, a hairline from the drawing to its caption, and the caption is its promise as the film says it.
import { BirdPlate } from "@krizaka/ui/bird-plate";Web only — React, from @krizaka/ui/bird-plate. Beta: its API may still change in a minor version.
- Mobile · ✗ to build. An app's welcome or empty state can carry its bird as a plate; it comes with the native paper roles. issue #421
Why it is here. The Cahier (ADR-004): the flock and each product's bird with its promise on www.krizaka.com, then /story and the product sites.
When to use
- The promises of the family on a home or a story page: the five birds of the film, numbered.
- The subject of a page, one bird large with its promise (
layout="single"): the owl on a reading product.
When not to use
- A rule said in a sentence inside a card or a section.Use instead: Mascot quote
- A bird reacting to a state (a wait, an error, an empty list).Use instead: Mascot state
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { BirdPlate } from "@krizaka/ui/bird-plate";Examples
The flock
Plate I: the five birds of the film, each numbered with its promise.
One bird
layout="single": one bird, large, its caption beside it.
Props
A naturalist's plate of the flock: numbered figures, a leader line from each bird to its caption, its promise.
| Prop | Type | Default | Description |
|---|---|---|---|
figuresrequired | readonly PlateFigure[] | — | The figures, in order: each is numbered fig. n. |
animated | boolean | false | The birds' idle loops (they pause off screen and stop under reduced motion). |
figureLabel | string | fig. | The word before the number. |
layout | "grid" | "single" | grid | grid — the figures side by side (two to five); single — one large figure, its caption beside it. |
separator | string | · | The separator between the figure number and its label. |
start | number | 1 | The first figure's number (a page that continues a plate). |
subtitle | ReactNode | — | One line under the title. |
title | ReactNode | — | The plate's title: Plate I · The flock. |
Accessibility
- The plate is a
figurewith its title asfigcaption; the figures are an ordered list, each caption real text. - The birds are decorative (
aria-hidden): the caption says who they are and what they promise. - With
animated, the loops pause off screen and stop underprefers-reduced-motion.
Best practices
- One bird per subject, its promise word for word as the film says it (the brand reference, §2): never a new promise line.
- Keep the birds' own colours (
tone="own") on a plate;brandonly when the plate sits in a product's world. - Number from where the page left off (
start): a story that continues Plate I starts at fig. 6. - The birds stay still by default; turn
animatedon for one plate per page at most.
Related components
Generated from the code of @krizaka/ui 3.63.1: its meta.ts, its examples and its types.Edit this documentation on GitHub