Empty State

Placeholder for missing or filtered results with glyph, title, description, and optional action.

Also known as: no results, blank state, zero state

Installation

Install with the CLI, or copy the component source into your project.

Add empty-state (npm)

npx --yes -p @default-file/ui df-ui add empty-state

Default

Glyph, title, and supporting description.

No projects yet
Create a project to start collecting files and comments.

With action

Optional recovery control under the copy.

No projects yet
Create a project to start collecting files and comments.

Filtered results

announce sets a status role so assistive technology hears the empty state after a filter returns nothing.

No matching projects
Try another name or clear the filter.

Copy only

Title is required. Glyph and description are optional.

No saved views
Views you save will appear in this list.

Properties

Placeholder for missing data or empty filtered results. Compose a glyph, title, optional description, and optional action.

EmptyState

PropTypeDefaultNotes
glyphReactNode-Decorative mark above the copy. Hidden from assistive tech.
titleReactNode-Primary empty-state heading (required).
descriptionReactNode-Supporting explanation under the title.
actionReactNode-Optional recovery control under the copy.
announcebooleanfalseWhen true, sets role="status" so assistive technology announces the empty state as it appears. Keep false for a static empty illustration that is part of the initial page.
classNamestring-Additional styles on the root.