Skip to content

Empty Cart

FeedbackMIT
View in Storybook

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

bun add @otfdashkit/ui

Preview

Empty Cart
Loading Storybook preview…

Code

import { EmptyCart } from '@otfdashkit/ui'

export function Example() {
  return (
    <div className="w-[480px] rounded-lg border border-border">
      <EmptyCart onAction={() => {}} />
    </div>
  )
}

Free with the SDK. This component ships in @otfdashkit/ui under the MIT license.

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'