CartSubtotal

Runtime subtotal row for CartDrawer. Reads total from cart context and shows formatted currency.

Structure

Self-contained dynamic component (no children). In editor mode shows a preview subtotal; in viewer mode renders live subtotal or hides when cart is empty.

Properties

PropertyTypeDescriptionExamples
labelTextstring
Subtotal row label text
Default: "Subtotal"
-
previewValuestring
Editor-only preview value
Default: "$0.00"
-
canDeleteboolean
-
Default: true
-
canEditNameboolean
-
Default: true
-
customobject
-
-
classNamestring
Tailwind classes for the subtotal wrapper
border-t border-base-300 px-6 py-3
rowClassNamestring
Tailwind classes for the subtotal row
flex items-center justify-between
labelClassNamestring
Tailwind classes for the label text
text-base-content/70
valueClassNamestring
Tailwind classes for the value text
text-xl font-bold