Skip to content
Storybook

Empty state

Shown when a list, table or search has nothing to display. Explains why and offers the next step.

Preview

React · live from the Storybook

HTML and CSS

The same component as plain HTML with pixels-ui.css, no framework needed.

No projects found

Your search “Landing page design” did not match any projects. Please try again.

Usage

  • Small for panels and tables, Large for full pages.

Installation

Included in the core files. No extra install.

HTML
<link rel="stylesheet" href="/css/pixels-tokens.css">
<link rel="stylesheet" href="/css/pixels-ui.css">
<script src="/js/pixels-ui.js" defer></script>

API reference

Class / attributeTypeDescription
px-empty · px-empty--lgclassSize.
__icon · __title · __desc · __actionsclassSlots.

Figma properties

Empty state4 variants · page “Empty States”Open

Shown when a list, table or search has nothing to display. Explain why and offer the next action. Small for panels and tables, Large for full pages.

PropertyTypeValues
TitleText“No projects found”
DescriptionText“Your search “Landing page design” did not match any projects. Please try again.”
ActionsBoolean—
SizeVariantSmall Large
DirectionVariantLTR RTL

Design tokens

Component tokens from the Figma Component collection. Override them to restyle just this component.

TokenAliasLight value
--px-empty-state-icon-backgroundcolor-background-brand-subtle#eff6ff
--px-empty-state-icon-contentcolor-content-brand-default#2563eb
--px-empty-state-titlecolor-content-neutral-primary#101828
--px-empty-state-bodycolor-content-neutral-secondary#475467

Accessibility

  • Use a heading so people can find it.