Skip to main content

CartItem

Deprecated

Single cart line — event thumbnail, title, tier, date, quantity stepper, line total, remove button. Hover-only remove on desktop. Superseded by cartdrawer.

Categorymolecules
Sourcepatterns/molecules/cartitem.html
AI HintUse for grouped UI patterns. Combine atoms into functional units.

Cart line-item.

CartItem

Commerce — Family 7

Cart line-item.

Usage

Cart line-item. Refer to the DS component index for full prop details.

import { CartItem } from '@epasslive/design-system'

Props

Preview

CartItem

Prop
Type
Required
Default
Description
id
string
Required
—
No description.
quantity
number
Required
—

1 to maxQuantity

onRemove
() => void
Required
—
No description.
Quick use:<CartItem />

Accessibility

ARIA rolearticle

Type

1 rule

NASA Rule 7

quantity in [1, maxQuantity] (NASA Rule 7)

ARIA

1 rule

WCAG 4.1.2

Remove button has aria-label='Remove {tierName} for {eventTitle}'

Usage

Import

tsxSnippet
import { CartItem } from "@epasslive/design-system"

Example 1

tsxSnippet
<CartItem />

Example 2

tsxSnippet
<CartItem variant="default" />

Anti-patterns

— Do not hardcode data in molecules

— Avoid complex business logic in molecules

Design System v4.1.0 | ePassLive