Skip to content

os-cart-button (Cart Button)

os-cart-button renders a cart icon button and shows the current cart item count badge when items exist.

os-cart-button (Cart Button)

None.

index.html
<os-cart-button></os-cart-button>

Cart Button screenshot

These are in addition to the global tokens inherited by every component.

CSS variable Default
--os-cart-button-bg transparent
--os-cart-button-color var(--os-foreground)
--os-cart-item-count-bg var(--os-primary)
--os-cart-item-count-color var(--os-primary-foreground)