Runtime subtotal row for CartDrawer. Reads total from cart context and shows formatted currency.
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.
| Property | Type | Description | Examples |
|---|---|---|---|
labelText | string | Subtotal row label text Default: "Subtotal" | - |
previewValue | string | Editor-only preview value Default: "$0.00" | - |
canDelete | boolean | - Default: true | - |
canEditName | boolean | - Default: true | - |
custom | object | - | - |
className | string | Tailwind classes for the subtotal wrapper | border-t border-base-300 px-6 py-3 |
rowClassName | string | Tailwind classes for the subtotal row | flex items-center justify-between |
labelClassName | string | Tailwind classes for the label text | text-base-content/70 |
valueClassName | string | Tailwind classes for the value text | text-xl font-bold |