Mini cart

A cart dropdown with line items.

Empty

API reference

Inputs

PropTypeDefaultDescription
itemsreadonly CartItem[][]Line items in the cart, used for count and subtotal.
currencystring'$'Currency symbol prefixed to prices and subtotal.
triggerLabelstringAccessible label override for the cart trigger button.
labelstringAccessible label override for the cart dropdown dialog.
titlestringHeading shown at the top of the cart panel. Falls back to `provideBuiLabels`.
subtotalLabelstringLabel for the subtotal row. Falls back to `provideBuiLabels`.
localestringBCP 47 locale for number formatting. Defaults to the app's `LOCALE_ID`.
numberFormatIntl.NumberFormatOptionsDEFAULT_NUMBER_FORMAT`Intl.NumberFormat` options for prices and subtotal. Replaces the default wholesale — pass `{ style: 'currency', currency: 'EUR' }` to let ICU place the symbol itself.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
openbooleanfalseWhether the dropdown is open. Two-way bindable with `[(open)]`.

Types

CartItem

FieldTypeDescription
namestringProduct name shown as the line-item label.
variant?stringOptional variant description shown under the name.
pricenumberUnit price of the item.
qtynumberQuantity in the cart.
image?stringOptional thumbnail image URL.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.