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.
- Domain
- Navigation & shell
- Support level
- Size
- 1.8 kB gzip, budget 2.0 kB
- Who uses it
- 2 files of the live products and sites import it (Folioviv: 2) Counted in the dated inventory of 2026-11-23.
import { DashboardLayout, Widget } from "@krizaka/ui/dashboard-layout";Web only — React, from @krizaka/ui/dashboard-layout. Beta: its API may still change in a minor version.
- Mobile · n/a. A phone dashboard is one scrolling screen of cards. → Screen
Why it is here. Used by Verikora, Folioviv.
When to use
- The home of a signed-in product: figures, what is running, what needs attention.
- A console's overview above its tables.
When not to use
- For one object's page.Use instead: Detail layout
- For a list to work through.Use instead: Split view
Installation
Install
npm install @krizaka/ui @krizaka/tailwind @krizaka/tokens tailwindcssStyles
@import "tailwindcss";
@import "@krizaka/tailwind";
@import "@krizaka/ui/tailwind.css";Import
import { DashboardLayout, Widget } from "@krizaka/ui/dashboard-layout";Examples
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.
| Prop | Type | Default | Description |
|---|---|---|---|
titlerequired | ReactNode | — | The screen's title: Good morning, Eric. |
actions | ReactNode | — | The screen's actions (a primary Button, a DropdownMenu). |
date | ReactNode | — | Today's date, in words, formatted by the app with @krizaka/intl: on the right of the heading; under the title on a phone. |
description | ReactNode | — | One sentence under it. |
eyebrow | ReactNode | — | A mono line above it (the workspace, the date). |
headingAs | "h1" | "h2" | h1 | The heading's level: h1 when the dashboard is the screen, h2 inside an AppShell whose header holds the h1. |
linkAs | LinkComponent | — | The app's link component for the quick actions. |
quickActions | readonly QuickAction[] | — | Two to four tiles under the heading: where the person goes most (new invoice, new client…). |
quickActionsLabel | string | — | Names the quick actions' navigation (Quick access). Required with quickActions. |
side | ReactNode | — | A side column (the period panel, NextActions, a notes list) beside the widgets from lg; under them on a phone. |
toolbar | ReactNode | — | 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.
| Prop | Type | Default | Description |
|---|---|---|---|
titlerequired | ReactNode | — | The widget's title: it names the region. |
action | ReactNode | — | An action on the right of the title (See all). |
description | ReactNode | — | One line under the title (the period, the source). |
level | 2 | 3 | 2 | The title's level: one under the dashboard's heading — 2 under an h1, 3 inside an AppShell (headingAs="h2"). |
span | 1 | 2 | 3 | "full" | 1 | The columns it takes: 1, 2, 3 or the full row (from sm; one column on a phone). |
Accessibility
- Each widget is a
sectionnamed by its title. - The heading is the screen's
h1, or anh2inside an AppShell (headingAs). - The quick actions are a
navnamed byquickActionsLabel, a list of links; the side column is anaside, after the widgets in reading order.
Best practices
- 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}orfullwidgets; a single figure in a one-column widget.
Related components
Generated from the code of @krizaka/ui 5.3.4: its meta.ts, its examples and its types.Edit this documentation on GitHub