Krizaka UI
Krizaka UI

Dashboard layout

A dashboard: the screen's heading with its actions and filters, then a responsive grid of widgets — one column on a phone, two from sm, four from xl — each a titled region that spans one to four columns.

Web · ✓Mobile · n/aBureau · ✓BêtaMises en page
Niveau de support
Bêta
Taille
1.8 kB gzip, budget 2.0 kB
Qui l'utilise
2 fichiers des produits et sites en production l'importent (Folioviv : 2) Compté dans l'inventaire daté du 2026-11-23.
import { DashboardLayout, Widget } from "@krizaka/ui/dashboard-layout";

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

  • Mobile · n/a. A phone dashboard is one scrolling screen of cards. → Screen

Pourquoi il est là. Used by Verikora, Folioviv.

Quand l’utiliser

  • The home of a signed-in product: figures, what is running, what needs attention.
  • A console's overview above its tables.

Quand ne pas l’utiliser

Installation

Installer

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

Styles

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

Importer

import { DashboardLayout, Widget } from "@krizaka/ui/dashboard-layout";

Exemples

Sovkora · Eric's console

An accountant's on-premise console: requests, latency, credits, running jobs and packs, the period in a chip group.

A shop's morning

The date on the right of the heading, a lead sentence whose figures are links, four quick-access tiles, the widgets and a side column (#653).

The grid

Four widgets of different spans.

Props

DashboardLayout

A dashboard screen: heading, actions, filters, then the grid of widgets.

PropTypeDéfautDescription
titlerequisReactNode—The screen's title: Good morning, Eric.
actionsReactNode—The screen's actions (a primary Button, a DropdownMenu).
dateReactNode—Today's date, in words, formatted by the app with @krizaka/intl: on the right of the heading; under the title on a phone.
descriptionReactNode—One sentence under it.
eyebrowReactNode—A mono line above it (the workspace, the date).
headingAs"h1" | "h2"h1The heading's level: h1 when the dashboard is the screen, h2 inside an AppShell whose header holds the h1.
linkAsLinkComponent—The app's link component for the quick actions.
quickActionsreadonly QuickAction[]—Two to four tiles under the heading: where the person goes most (new invoice, new client…).
quickActionsLabelstring—Names the quick actions' navigation (Quick access). Required with quickActions.
sideReactNode—A side column (the period panel, NextActions, a notes list) beside the widgets from lg; under them on a phone.
toolbarReactNode—Under the heading: the period, the filters (Segmented tabs, a DateRangePicker, a FilterBar).

Widget

A widget of the dashboard: a titled region on a card.

PropTypeDéfautDescription
titlerequisReactNode—The widget's title: it names the region.
actionReactNode—An action on the right of the title (See all).
descriptionReactNode—One line under the title (the period, the source).
level2 | 32The title's level: one under the dashboard's heading — 2 under an h1, 3 inside an AppShell (headingAs="h2").
span1 | 2 | 3 | "full"1The columns it takes: 1, 2, 3 or the full row (from sm; one column on a phone).

Accessibilité

  • Each widget is a section named by its title.
  • The heading is the screen's h1, or an h2 inside an AppShell (headingAs).
  • The quick actions are a nav named by quickActionsLabel, a list of links; the side column is an aside, after the widgets in reading order.

Bonnes pratiques

  • The most important figures first: on a phone they are read first.
  • One sentence under the title that says what changed (Three sales since yesterday).
  • Charts from @krizaka/charts and tables in span={2} or full widgets; a single figure in a one-column widget.

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