Empty State

What a list or page shows before it has content, with the action that fills it.

No orders yet

Your first bag ships the Friday after you subscribe. Orders and tracking show up here.

import { Button, EmptyState } from '@brand-studio/ui';
import { ShoppingBag } from 'lucide-react';

export default function EmptyStateDemo() {
  return (
    <div style={{ width: '100%', maxWidth: 460 }}>
      <EmptyState
        icon={<ShoppingBag strokeWidth={1.8} />}
        title="No orders yet"
        description="Your first bag ships the Friday after you subscribe. Orders and tracking show up here."
        action={<Button>Choose a coffee</Button>}
      />
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { EmptyState } from '@brand-studio/ui';
<EmptyState
  title="No orders yet"
  description="Your first bag ships the Friday after you subscribe."
  action={<Button>Choose a coffee</Button>}
/>

Accessibility

  • The title is an <h3>. The icon is decorative and hidden from screen readers.
  • Say what will appear here and give one action that makes it appear. Skip the action when the person cannot fix the emptiness.

API Reference

PropTypeDefault
icon?React.ReactNode–
titleReact.ReactNode–
description?React.ReactNode–
action?React.ReactNode–
className?string''

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.