Krizaka UI
Krizaka UI

Detail layout

One object's page: the way back, its media, name, status, facts and actions, its tabs, the content and a side panel that goes under the content on a phone.

Web · ✓Mobile · n/aDesktop · ✓BetaLayouts
Support level
Beta
Size
2.9 kB gzip, budget 2.4 kB
Who uses it
5 files of the live products and sites import it (Verikora: 3, Folioviv: 2) Counted in the dated inventory of 2026-11-23.
import { DetailLayout, DetailSection, DetailNotes, FormSteps, FormTotals } from "@krizaka/ui/detail-layout";

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

  • Mobile · n/a. A phone shows one object per screen, under its header. → Screen

Why it is here. Used by Verikora, Folioviv.

When to use

  • A video, a job, an account, a pack, an order.
  • Any object reached from a list.

When not to use

Installation

Install

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

Styles

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

Import

import { DetailLayout, DetailSection, DetailNotes, FormSteps, FormTotals } from "@krizaka/ui/detail-layout";

Examples

A video

A video page: thumbnail, status, facts, tabs and the sales beside.

Tip checkout

Who is paid, the amount in one tap, an optional word, the total beside the pay button.

A client

The profile banner, binder sections (DetailSection) and the notes column (notes, DetailNotes) (#653).

A new invoice

FormSteps numbered, FormTotals sticky beside them, and the StickyAction in task mode with the total (#653).

A job

An engine job without tabs or side panel.

A person's page

cover: the header becomes a ProfileBanner — the cover, the avatar over its edge, the name, the actions (#650).

Props

DetailLayout

One object's page: header (back, media, name, status, facts, actions), tabs, content and a side panel.

PropTypeDefaultDescription
titlerequiredReactNode—The object's name: the h1.
actionsReactNode—The object's actions (edit, publish, a DropdownMenu).
asideReactNode—The side panel: details, related objects, activity (under the content on a phone).
backReactNode—The way back to the list: your router's link (<Link href="/videos">Videos</Link>), drawn with its arrow.
coverReactNode—A person's or a place's page (a client, a shop, a creator): the header becomes a ProfileBanner — this cover (an <img alt="">, or true for a tint of the brand's accent), media as the avatar overlapping it, then the name and the actions.
eyebrowReactNode—A mono line above the name (the object's kind, its id).
mediaReactNode—A thumbnail, a cover or an avatar beside the name; with cover, the avatar overlapping the cover.
metaReactNode—Under the name: its facts (the author, a date, a count — Facts or plain text).
notesReactNode—A notes column (DetailNotes) at the top of the side panel, before aside.
statusReactNode—Beside the name: its status (a Badge).
tabsReactNode—Under the header: the object's tabs (Tabs.List of @krizaka /ui/tabs, inside your Tabs.Root around the layout).

DetailNotes

The notes column of a person's or an object's page: numbered notes and an add field.

PropTypeDefaultDescription
emptyLabelrequiredstring—Said when there is none.
notesrequiredreadonly DetailNote[]—The notes, oldest first.
titlerequiredReactNode—The column's name (Notes).
addReactNode—Under the list: the add field (a Field and a Button, a small form).

DetailSection

A binder section of the main column: a titled region on a card, its name on a tab at the top-left corner.

PropTypeDefaultDescription
titlerequiredReactNode—The binder tab: names the section (Invoices).
actionReactNode—On the right of the title: one action (See all).
level2 | 32The title's level.

FormSteps

The numbered steps of a long form (a new invoice: client, lines, terms): an ordered list, each step a named region.

PropTypeDefaultDescription
stepsrequiredreadonly FormStepData[]—The steps in order: an id, a title and their fields.

Accessibility

  • The name is the page's h1.
  • The side panel is an aside; on a phone it comes after the content in reading order.

Best practices

  • The status beside the name, in words (a Badge), not only a colour.
  • Two or three actions at most in the header; the rest in a DropdownMenu.
  • Put the tabs' Tabs.Root around the layout so the content follows the tab.

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