Compositions
EmptyState
Generic empty state, composed on Empty. Replaces the per-feature
"nothing here" implementations with one flat-props preset: an icon (or custom
media), a title, optional description, and optional actions.
Usage
Best practices
Use
EmptyStatefor "no data / nothing here"; a failure the user can retry is anErrorState(which also composesEmpty), so don't hand-roll a retry empty.Set
levelto keep the document outline gapless where you place it - a full-page empty near anh2wantslevel="3", but a nested one may need"4".
Props
Also exports
- interface
EmptyStateProps
Composition
Builds on