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
iconstringHeroicons icon name
titlestringrequiredHeading text
descriptionstringSubtitle text
actionLabelstringAction button label
actionTostringAction button route
uiPartial<{...}>Per-instance theme overrides

Events

EventPayloadDescription
actionAction button clicked (when no actionTo)

Slots

SlotScoped PropsDescription
iconCustom icon/illustration
defaultCustom body content
actionsCustom action buttons