Krizaka UI
Krizaka UI

Mascot quote

A rule, a promise or a decision told by a bird: the sentence in a speech bubble, the bird under its tail and who speaks — inline in a card, callout alone in a section.

Web · ✓Mobile · n/aBureau · n/aBêtaBlocs
Niveau de support
Bêta
Taille
8.7 kB gzip, budget 6.1 kB
Qui l'utilise
1 fichiers des produits et sites en production l'importent (krizaka.com : 1) Compté dans l'inventaire daté du 2026-11-23.
import { MascotQuote } from "@krizaka/ui/mascot-quote";

Web uniquement — React, depuis @krizaka/ui/mascot-quote. Bêta : son API peut encore changer à une version mineure.

  • Mobile · n/a. A bird quoting a rule on a site's page; on a phone the bird carries a state. → Mascot state
  • Bureau · n/a. A public site's page, not a window of the Mac app.

Pourquoi il est là. Used by Verikora, krizaka.com.

Quand l’utiliser

  • To state the rule a feature stands for (the falcon watches, the owl reads, the duck builds, the flamingo answers or gets paid, the pigeon delivers, the lovebird introduces, the crane listens, the magpie keeps the score, the beaver builds the shop).
  • A promise that deserves its own moment in a section (callout).

Quand ne pas l’utiliser

  • For a bird that only decorates: a bird carries a promise, or it is not there.À la place : Mascots
  • For a status or a warning the reader must act on.À la place : Alert

Installation

Installer

npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcss

Styles

@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";

Importer

import { MascotQuote } from "@krizaka/ui/mascot-quote";

Exemples

Inline

The falcon's rule, small, beside a paragraph or inside a card.

Callout

The owl's promise, alone in a section, the bird alive.

Props

A sentence told by a bird: a speech bubble, the bird under its tail, who speaks. The bird is decorative.

PropTypeDéfautDescription
birdrequis"falcon" | "owl" | "duck" | "flamingo" | "pigeon" | "lovebird" | "crane" | "magpie" | "beaver"—The bird that speaks — the one whose idea it is.
childrenrequisReactNode—The sentence: the rule, the promise.
labelrequisReactNode—Who speaks, under the bubble: The falcon's rule.
animatedboolean—The bird's idle loop (it pauses off screen and stops under reduced motion). Defaults to true for a callout.
mood"empty" | "success" | "error" | "welcome" | "thinking"thinkingIts mood.
variant"inline" | "callout"inlineinline inside a card (small, the bird answers the pointer); callout alone in a section (larger, the bird alive).

Accessibilité

  • A figure with a blockquote and its figcaption: read as a quote and who says it.
  • The bird is decorative (aria-hidden); its idle loop pauses off screen and stops under prefers-reduced-motion.

Bonnes pratiques

  • One bird per idea, the same bird for the same idea everywhere.
  • One sentence, said as a rule: short, in the present tense.
  • The label says who speaks (The falcon's rule): words as props.

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

Sur cette page