Skip to content
coatx
Esc
↑↓navigate↵open⌘Jpreview
On this page

Empty

Dashed zero-data and empty-state recipes with icon media slot and call-to-action area.

No projects yet

Create your first workspace to manage tokens, themes, and deployments.

Usage

import { button } from "coatx/button";
import {
  empty,
  emptyContent,
  emptyDescription,
  emptyHeader,
  emptyMedia,
  emptyTitle,
} from "coatx/empty";

export const EmptyProjects = () => (
  <div {...empty()}>
    <div {...emptyHeader()}>
      <div {...emptyMedia({ variant: "icon" })}>✦</div>
      <h3 {...emptyTitle()}>No projects yet</h3>
      <p {...emptyDescription()}>Create your first workspace to get started.</p>
    </div>
    <div {...emptyContent()}>
      <button type="button" {...button({ size: "sm" })}>
        Create project
      </button>
    </div>
  </div>
);

Exports (coatx/empty)

Export Description
empty(options?) Dashed empty-state container
emptyHeader(options?) Centered media, title, and description column
emptyMedia(options?) Icon or artwork slot (variant: "default", "icon")
emptyTitle(options?) Empty-state headline
emptyDescription(options?) Balanced muted copy
emptyContent(options?) Centered action / CTA region
emptyStyles Compiled StyleX style map

Was this page helpful?