Skip to content

Empty

A placeholder component for empty states.

Examples

Default

No items found

You haven't added any items yet.

vue
<Empty>
  <EmptyHeader>
    <EmptyMedia>
      <svg
          xmlns="http://www.w3.org/2000/svg"
          viewBox="0 0 24 24"
          fill="none"
          stroke="currentColor"
          stroke-width="2"
          stroke-linecap="round"
          stroke-linejoin="round"
          class="h-10 w-10 text-muted-foreground"
        >
          <circle cx="12" cy="12" r="10" />
          <line x1="12" y1="8" x2="12" y2="12" />
          <line x1="12" y1="16" x2="12.01" y2="16" />
        </svg>
    </EmptyMedia>
    <EmptyTitle>No items found</EmptyTitle>
    <EmptyDescription>
      You haven't added any items yet.
    </EmptyDescription>
  </EmptyHeader>
</Empty>

With Actions

No products added

You can add products to your inventory.

vue
<Empty>
  <EmptyHeader>
    <EmptyTitle>No products added</EmptyTitle>
    <EmptyDescription>
      You can add products to your inventory.
    </EmptyDescription>
  </EmptyHeader>
  <div class="mt-4 flex justify-center">
    <Button>Add Product</Button>
  </div>
</Empty>