Krizaka UI
Krizaka UI

Card grid

A responsive grid of cards: as many columns as the width allows (one on a phone), the cells of a row at one height, a staggered reveal; each card keeps its own quiet hover.

Web · ✓Mobile · n/aDesktop · n/aBetaBlocks
Support level
Beta
Size
1.1 kB gzip, budget 0.8 kB
Who uses it
11 files of the live products and sites import it (Sovkora: 1, krizaka.com: 2) Counted in the dated inventory of 2026-11-23.
import { CardGrid } from "@krizaka/ui/card-grid";

Web only — React, from @krizaka/ui/card-grid. 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. → Card
  • Desktop · n/a. A public site's page, not a window of the Mac app.

Why it is here. Used by Verikora, Folioviv, krizaka.com.

When to use

  • Entry points of a hub (LinkCard), the reasons of a product page (ArgumentCard), plans, products.
  • Any set of peer cards that should read as one group with one rhythm.

When not to use

  • For a sequence the reader follows in order.Use instead: Stepper
  • For rows of data to compare or sort.Use instead: Data table

Installation

Install

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

Styles

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

Import

import { CardGrid } from "@krizaka/ui/card-grid";

Examples

Two halves

fit="fit": two cards share the whole width.

An aligned row

Cards with sentences of different lengths: one height, and the facts and the way in of every card on the same line.

A foundation

foundation: one wide card the others stand on, a hairline to a frame around them.

A list of sections

as="ul", six links that rise staggered by column on a real page.

The hover

The grid adds no hover: each card's surface and hairline go one step up, a ring on focus.

Props

A responsive grid of cards: equal rows, a staggered reveal.

PropTypeDefaultDescription
childrenrequiredReactNode—The cards: one cell each.
align"start" | "stretch"stretchstretch gives the cells of a row one height; start lets each card keep its own (cards that open a panel).
as"div" | "ol" | "ul"divul when the cards are a list (each cell an li).
columnsnumber3The columns the stagger counts (the delay restarts on every row).
fit"fill" | "fit"fillfill keeps empty tracks (a lone card keeps its width); fit stretches the cards of a short row across the width.
foundationReactNode—A foundation: one wide card that the cards of the grid stand on (an engine, a platform, a shared service). It spans the full width beside the grid, and a hairline joins it to a frame around the cards — "everything inside runs on it". The frame takes the hue of className (a data-hue or a brand class on the grid sets it for the whole block).
foundationLabelReactNode—A short mono label on the frame's edge, naming the relation (Powered by Sovkora). Only with foundation.
foundationPosition"start" | "end"startWhere the foundation sits: above the cards, or under them.
hoverCardHover—@deprecated Since 3.31 (krizaka-ui#393): does nothing — every card has the one quiet hover. Removed in 4.0.
lightboolean—@deprecated Since 3.31 (krizaka-ui#393): does nothing — no light follows the pointer. Removed in 4.0.
minnumber300The narrowest a column may be, in pixels: the grid fits as many columns as the width allows.
revealbooleantrueThe cards rise once into place ([data-reveal], MotionObserver), staggered by column. false on the first screen.

Accessibility

  • The grid adds no role; as="ul" makes it a list (each cell an li).
  • Nothing follows the pointer: light and hover are deprecated since 3.31 (krizaka-ui#393) and do nothing.
  • Revealed cells are only hidden visually until they enter the viewport; under reduced motion they never move.

Best practices

  • Set min to the narrowest a card still reads well; the grid does the rest at every width.
  • fit="fit" for two or three cards that should share the whole width; fill keeps a lone card at its size.
  • Keep reveal on below the first screen, off on it; columns makes the stagger restart on each row.
  • The default align="stretch" gives a row one height; the cards pin their foot to the bottom (LinkCard facts + way in, ArgumentCard actions) so the footers line up. align="start" for cards that unfold.
  • as="ul" when the cards are a list of links.
  • foundation when one thing (an engine, a platform) carries all the others: it takes its own card, wide, above (foundationPosition="end" for under), and the cards sit in a hairline frame joined to it. Say the relation with foundationLabel; set the hue on className.

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