Add to cart
A stateful add-to-cart button.
Custom labels
Sizes
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | 'Add to cart' | Button text shown in the idle and adding states. |
addedLabel | string | 'Added' | Button text shown briefly in the added (success) state. |
size | AddToCartSize | 'default' | Size preset controlling height and padding. |
Outputs
| Event | Payload | Description |
|---|---|---|
triggered | void | Emitted when the button is clicked to add the item. |
Types
AddToCartSize — Size preset controlling button height and padding.
"default" | "lg" | "sm" Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.