Empty Cart
FeedbackMITBespoke empty-cart state with icon, message, and continue-shopping CTA.
bun add @otfdashkit/ui
Preview
Empty CartFeedback
Loading Storybook preview…
Code
@otfdashkit/uiimport { 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.
| Prop | Type | Default | Description |
|---|---|---|---|
| actionLabel | string | 'Continue shopping' | CTA label — renders a button only when `onAction` is also provided. |
| description | string | 'Browse the catalog and add something you love.' | |
| icon | ReactNode | Override the default cart icon. | |
| onAction | () => void | ||
| title | string | 'Your cart is empty' |