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 github:itsvigneshv/default-file-ui#main df-ui add empty-state

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.