Skip to content

Empty State ​

EmptyState displays a centered placeholder when there is no data to show. It supports an icon, title, description, and an action slot.

Basic usage ​

Tailwind v4
vue
<EmptyState title="No results found" />

With description ​

Tailwind v4
vue
<EmptyState
  title="No equipment records"
  description="Add your first piece of equipment to get started."
/>

With icon ​

The icon prop accepts any single character or emoji:

Tailwind v4
vue
<EmptyState
  icon="🏗️"
  title="No shifts scheduled"
  description="Create a shift to begin tracking production."
/>

With action button ​

Use the action slot for a call-to-action:

Tailwind v4
vue
<EmptyState
  icon="📋"
  title="No sieve tests"
  description="Run your first sieve test to see results here."
>
  <template #action>
    <Button @click="openCreateModal">Add Sieve Test</Button>
  </template>
</EmptyState>

Inside a card ​

Tailwind v4
vue
<Card>
  <EmptyState
    title="No loadout events today"
    description="Loadout events will appear here as they are recorded."
  />
</Card>

Props ​

PropTypeDefaultDescription
titlestring—Main heading text
descriptionstring—Supporting description text
iconstring—Emoji or character shown above the title

Slots ​

SlotDescription
actionOptional call-to-action — centered below the description

Private — Jetpack Labs internal use only