Skip to content
Browse library
BIU UI/Components/Empty State
COMPONENTS

Empty State

Explore the Empty State component and try its interactive examples.

INTERACTIVE PREVIEW

Preview

Install the components for this example with pnpm dlx shadcn add @biudev/empty-state @biudev/button.

Loading preview…
GET STARTED

Installation

Install the component source via shadcn Registry, the BIU CLI, or as an npm package.

TERMINAL / pnpm
pnpm dlx shadcn add @biudev/empty-state

First time using @biudev? Map "@biudev": "https://ui.biu.dev/r/0.1.0/{name}.json" under registries in your components.json (see setup).

Usage

Start with this example, then adjust the import path for your project.

Install the components for this example with pnpm dlx shadcn add @biudev/empty-state @biudev/button.

EXAMPLE / TSX
import { Button } from "@/components/ui/biu/button";
import { EmptyState } from "@/components/ui/biu/empty-state";

export function Example() {
  return (
    <EmptyState
      title="No schedules yet"
      description="Runs you ask an agent to repeat show up here, with their next time."
      action={
        <Button variant="secondary" size="sm">
          + New schedule
        </Button>
      }
    />
  );
}

Examples

Try each example or switch to its code.

API reference

Properties and defaults from the component source. An asterisk marks a required property; a dash means no explicit default.

EmptyStateVariant

Also accepts properties from 'clean' & 'classic'.

Some properties depend on the variant; consult the source for the full union.

EmptyStateSize

Also accepts properties from 'sm' & 'md' & 'lg'.

Some properties depend on the variant; consult the source for the full union.

EmptyStateProps

Also accepts properties from Omit<ComponentPropsWithRef<'div'>, 'title'>.

Source

Review a formatted version of the component source used by the Registry.