Krizaka UI
Krizaka UI

Decision list

The decisions behind a product, numbered: what was chosen, large, then side by side what was refused, why, and what it costs the reader — each with its mark and its colour.

Web · ✓Mobile · n/aBureau · n/aBêtaBlocs
Niveau de support
Bêta
Taille
1.8 kB gzip, budget 1.0 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 { DecisionList } from "@krizaka/ui/decision-list";

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

  • Mobile · n/a. A block of a public site's page; an app screen on a phone is built from Screen, Header and Card. → Description list
  • Bureau · n/a. A public site's page, not a window of the Mac app.

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

Quand l’utiliser

  • A product's or a building block's design decisions, explained to the people who will live with them.
  • Any choice where the cost to the reader must be said as plainly as the benefit.

Quand ne pas l’utiliser

  • For reasons that each lead to their own page.À la place : Argument card
  • For steps the reader follows in order.À la place : Stepper

Installation

Installer

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

Styles

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

Importer

import { DecisionList } from "@krizaka/ui/decision-list";

Exemples

A product's decisions

Local inference and zero telemetry: chosen, refused, why, and what it costs.

Props

Numbered decisions: chose, then refused · because · what it costs, side by side.

PropTypeDéfautDescription
decisionsrequisreadonly Decision[]—The decisions, in order.
labelsrequis{ chose: ReactNode; refused: ReactNode; because: ReactNode; cost: ReactNode; }—The four labels: { chose: "We chose", refused: "We refused", because: "Because", cost: "What it costs you" }.
revealbooleantrueEach decision rises once into place, staggered ([data-reveal]).

Accessibilité

  • An ordered list: the number is decorative, the list says the order.
  • Each part has its label in words; the marks (✓ ✕ → !) and the colours only repeat them.

Bonnes pratiques

  • Always fill the cost: a decision without its cost is an advertisement.
  • One sentence per part; the choice first, in words a newcomer understands.
  • The four labels arrive as props (We chose, We refused, Because, What it costs you).

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