UI / Components / data / EmptyState

EmptyState

Friendly zero-state with icon, copy, CTA.

Standardized zero-state. Centered icon + headline + body copy + CTA button. Use anywhere a list is empty, a search has no results, or a feature hasn't been set up.

$npx dock-ui add empty-state

Usage

import { EmptyState } from "@/components/ui/empty-state";

<EmptyState
  icon={<InboxIcon />}
  title="Your inbox is empty"
  body="When agents @mention you, notifications show up here."
  action={<Button>Connect an agent</Button>}
/>

Install

via CLI
$ npx dock-ui add empty-state
Writes the file(s) directly to your components/ui/ folder. You own the code.
For agents
curl -L https://ui.trydock.ai/r/empty-state.json
Returns a JSON manifest with file paths + contents. Agent-readable, LLM-fetchable.
← All components
Themes·Component kit · glossary
View on GitHub →