Skip to content
OTF Kit logoOTF Kit

Empty Cart

Feedback

Bespoke empty-cart state with icon, message, and continue-shopping CTA.

View in Storybook
Empty Cart
Loading Storybook preview…

Installation

bun add @otfdashkit/ui

Usage

Import EmptyCart from @otfdashkit/ui.

Code
// Empty Cart — Bespoke empty-cart state with icon, message, and continue-shopping CTA.
//
// Install:
//   bun add @otfdashkit/ui

import { EmptyCart } from '@otfdashkit/ui'

export function Example() {
  return (
    <EmptyCart>
      {/* your content */}
    </EmptyCart>
  )
}

Props

Props declared in the EmptyCart source. Inherited HTML attributes are not listed.

PropTypeDefaultDescription
actionLabelstring'Continue shopping'CTA label — renders a button only when `onAction` is also provided.
descriptionstring'Browse the catalog and add something you love.'
iconReactNodeOverride the default cart icon.
onAction() => void
titlestring'Your cart is empty'

Related