Skip to content
PixiKit

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
NameTypeDefaultDescription
kindBlankSlateKind"empty"Which situation it describes; each has its own drawing and default words.
illustrationReactNodeNoneReplaces the drawing.
titlestringNoneThe heading; each kind has a default.
descriptionstringNoneThe text under the heading; each kind has a default.
action{ label: string; onClick: () => void }NoneThe main button.
secondaryAction{ label: string; onClick: () => void }NoneA second, quieter button.
suggestionsBlankSlateSuggestion[]NoneStarting 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.
classNamestringNone

More feedback blocks in Pro

View all

Related