CartButton

Interactive documentation for the cart button entity. Change count in the playground, inspect count states, and track click events.

clicks: 0

Preview

0

Code

<CartButton :count="0" @click="handleClick" />

States

Common cart count states.

Empty cart

0

Double digits

0

Triple digits

0

Props & Events

These tables match the current CartButton props and emitted events.

Props

Input values accepted by CartButton.

PropTypeDefaultRequiredDescription
countnumberundefinedRequiredCurrent cart items count displayed inside the number chip.

Events

Events emitted by CartButton.

EventPayloadDescription
clickvoidEmitted when user clicks the cart button.