CartBadge

Shopping cart badge wrapper. Place in navbar/header. Default preset includes a child toggle-cart button.

Supports Children: any

Structure

Wrapper component. Add a child Button with action toggle-cart (the default preset does this). The cart count badge is injected onto toggle-cart buttons and respects showCount.

Properties

PropertyTypeDescriptionExamples
showCountboolean
Show the item count badge when cart has items
Default: true
-
canDeleteboolean
-
Default: true
-
canEditNameboolean
-
Default: true
-
customobject
-
-
classNamestring
Tailwind classes for the wrapper
relative