Blank Slate
An empty state with a small line drawing for each situation (empty, no results, error, offline, done) that draws itself and then idles. It takes words, up to two buttons, and starting points that lift on hover.
pixikit.com/docs/app-ui/feedback/blank-slate
Customize
Kind
Suggestions layout
Surface
Size
Props
11| Name | Type | Default | Description |
|---|---|---|---|
kind | BlankSlateKind | "empty" | Which situation it describes; each has its own drawing and default words. |
illustration | ReactNode | None | Replaces the drawing. |
title | string | None | The heading; each kind has a default. |
description | string | None | The text under the heading; each kind has a default. |
action | { label: string; onClick: () => void } | None | The main button. |
secondaryAction | { label: string; onClick: () => void } | None | A second, quieter button. |
suggestions | BlankSlateSuggestion[] | None | Starting points shown under the buttons. |
suggestionsLayout | "list" | "grid" | "list" | `list` stacks the rows, `grid` lays them out in columns. |
surface | "plain" | "dashed" | "card" | "plain" | `dashed` draws a dashed edge, `card` a filled box. |
size | "sm" | "md" | "md" | The size of the drawing, the text and the padding. |
className | string | None |