EmptyState
Variants for first-run / no-results / error with action slot.
EmptyState — what to show when a list, page, or panel has no data. Canonical for `@marktiderman/genesis-ui`. The former `@marktiderman/genesis-ui/data` EmptyState is now a deprecated re-export of this component (see `../data/EmptyState`) — its `hasFilters` / `onClearFilters` / `message` props all landed here, so nothing consuming that subpath needs a source change. Note that the *rendered output* is this component's, not the old `/data` one's: see that file's `@deprecated` block for the visual differences a `/data` consumer will see. Precedence: `hasFilters` wins over everything the caller passed — it replaces the heading with fixed "no results match your filters" copy, suppresses `description`, and (given `onClearFilters`) replaces `action` with a "Clear all filters" button.
packages/ui/src/components/patterns/empty-state.tsx
@marktiderman/genesis-ui/patternsimport { EmptyState } from "@marktiderman/genesis-ui/patterns";@marktiderman/genesis-ui.- EmptyState
- NoFeaturesFound
- NoFeedbackFound
- NoSearchResults
react-docgen-typescript.EmptyState
EmptyState — what to show when a list, page, or panel has no data. Canonical for `@marktiderman/genesis-ui`. The former `@marktiderman/genesis-ui/data` EmptyState is now a deprecated re-export of this component (see `../data/EmptyState`) — its `hasFilters` / `onClearFilters` / `message` props all landed here, so nothing consuming that subpath needs a source change. Note that the *rendered output* is this component's, not the old `/data` one's: see that file's `@deprecated` block for the visual differences a `/data` consumer will see. Precedence: `hasFilters` wins over everything the caller passed — it replaces the heading with fixed "no results match your filters" copy, suppresses `description`, and (given `onClearFilters`) replaces `action` with a "Clear all filters" button.
| Prop | Type | Default | Description |
|---|---|---|---|
| action | ReactNode | — | |
| className | string | — | |
| description | string | — | |
| hasFilters | boolean | false | Renders a "no results match your current filters" state — superseding `title`/`description` — and, when `onClearFilters` is also given, a "Clear all filters" action in place of `action`. |
| icon | LucideIcon | — | |
| message | string | — | @deprecated Use `title` instead. Kept for source compatibility with the former `@marktiderman/genesis-ui/data` EmptyState, which used `message` in place of `title`/`description`. Ignored whenever `title` is also provided. |
| onClearFilters | (() => void) | — | Invoked by the "Clear all filters" action shown when `hasFilters` is true. |
| title | string | — | Bold heading. Optional — falls back to `message` (deprecated), then a generic default. Superseded by fixed copy whenever `hasFilters` is true. |
NoFeaturesFound
Preset `EmptyState` for an empty roadmap / feature list.
| Prop | Type | Default | Description |
|---|---|---|---|
| onCreate | (() => void) | — |
NoFeedbackFound
Preset `EmptyState` for a feedback inbox with nothing in it yet.
No declared props.
NoSearchResults
Preset `EmptyState` for a search or filter that matched nothing.
| Prop | Type | Default | Description |
|---|---|---|---|
| onClear | (() => void) | — | |
| query | string | — |