Skip to Content

Empty

A structured empty state for lists, tables, and search results. Provides a consistent centered layout with optional icon, title, description, and action buttons.

Import

import { Empty } from "chunks-ui";

Basic Usage

<Empty.Root> <Empty.Media> <BoxIcon /> </Empty.Media> <Empty.Title>No paints found</Empty.Title> <Empty.Description>Try adjusting your search or filter criteria.</Empty.Description> <Empty.Actions> <Button variant="outlined">Clear filters</Button> </Empty.Actions> </Empty.Root>
Empty box

No paints found

Try adjusting your search or filter criteria.

Minimal

All parts except Root are optional. Use just a title and description for simple cases:

<Empty.Root> <Empty.Title>No results</Empty.Title> <Empty.Description>There are no items to display yet.</Empty.Description> </Empty.Root>

No results

There are no items to display yet.

Compound Parts

PartDescription
Empty.RootCentered flex column container with vertical spacing.
Empty.MediaIcon or illustration container. Auto-sizes SVGs to 48px.
Empty.TitleHeading text (<h3>).
Empty.DescriptionSupporting text in muted color. Max width constrained for readability.
Empty.ActionsHorizontal button group.

Props

All parts accept className for customization. All other props are forwarded to their respective HTML elements (<div>, <h3>, <p>).

Last updated on