EventComparisonTable

organisms

Event comparison table — side-by-side comparison of multiple events showing date, venue, price range, and availability. Used for festival multi-event booking. Preserves legacy comparison feature.

ARIA Role: table

Demo

NameStatusAmount
Invoice #001Paid$1,200.00
Invoice #002Pending$850.00

Props

PropTypeRequiredDefaultDescription
eventsComparableEvent[]Yes
onAddToCart(eventId: string, tierId: string) => voidYes
maxEventsnumberNo5

TypeScript Interface

interface EventComparisonTableProps {
  events: ComparableEvent[];
  onAddToCart: (eventId: string, tierId: string) => void;
  maxEvents?: number;
}

Assertions (NASA Rule 5)

  • [type]events must have at least 2 items for comparison(NASA Rule 5)
  • [aria]Table must have aria-label describing comparison(WCAG 4.1.2)

Usage

Import

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

Basic

<Eventcomparisontable />

With Variants

<Eventcomparisontable variant="primary" size="md" />