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/aDesktop · n/aBetaBlocks
Support level
Beta
Size
1.8 kB gzip, budget 1.0 kB
Who uses it
1 files of the live products and sites import it (krizaka.com: 1) Counted in the dated inventory of 2026-11-23.
import { DecisionList } from "@krizaka/ui/decision-list";

Web only — React, from @krizaka/ui/decision-list. Beta: its API may still change in a minor version.

  • 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
  • Desktop · n/a. A public site's page, not a window of the Mac app.

Why it is here. Used by krizaka.com.

When to use

  • 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.

When not to use

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

Installation

Install

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

Styles

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

Import

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

Examples

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.

PropTypeDefaultDescription
decisionsrequiredreadonly Decision[]—The decisions, in order.
labelsrequired{ 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]).

Accessibility

  • 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.

Best practices

  • 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).

Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub

On this page