Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/patterns
import { EmptyState } from "@marktiderman/genesis-ui/patterns";
Exports
Re-exported from @marktiderman/genesis-ui.
  • EmptyState
  • NoFeaturesFound
  • NoFeedbackFound
  • NoSearchResults
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
actionReactNode—
classNamestring—
descriptionstring—
hasFiltersbooleanfalseRenders 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`.
iconLucideIcon—
messagestring—@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.
titlestring—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.

PropTypeDefaultDescription
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.

PropTypeDefaultDescription
onClear(() => void)—
querystring—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.