Common

EmptyState

Reusable empty state placeholder with icon, title, description, and action button.

EmptyState

A placeholder component for empty collections (no items, no results, empty cart, etc.) with an icon, title, description, and optional action link.

Preview

Your cart is empty

Looks like you haven't added any items yet.

Start Shopping

Usage

<CEmptyState
  icon="i-heroicons-shopping-bag"
  title="Your cart is empty"
  description="Looks like you haven't added any items yet."
  action-label="Start Shopping"
  action-to="/products"
/>

Minimal

<CEmptyState title="No results found" />

Without Action

<CEmptyState
  icon="i-heroicons-magnifying-glass"
  title="No results"
  description="Try adjusting your filters or search terms."
/>

Props

PropTypeDefaultDescription
iconstring—Heroicons icon name
titlestringrequiredHeading text
descriptionstring—Subtitle text
actionLabelstring—Action button label
actionTostring—Action button route
uiPartial<{...}>—Per-instance theme overrides

Events

EventPayloadDescription
action—Action button clicked (when no actionTo)

Slots

SlotScoped PropsDescription
icon—Custom icon/illustration
default—Custom body content
actions—Custom action buttons