Passer au contenu principal

EventCardPublic

Deprecated

Public event card — 320px wide. Top: 200px image with hover scale. Body: date (large) + title + venue + price-from + Buy button. Larger and more visual than admin EventCard. Superseded by eventcard.

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

Catalog fallback

Live MDX preview not available for EventCardPublic. Showing component catalog metadata instead.

Props

Preview

EventCardPublic

Prop
Type
Required
Default
Description
id
string
Required
—
No description.
title
string
Required
—
No description.
image
EventImage
Required
—
No description.
date
EventDate
Required
—
No description.
priceFrom
number
Required
—

0+

href
string
Required
—
No description.
Quick use:<EventCardPublic />

Accessibility

ARIA rolearticle

Type

1 rule

NASA Rule 7

All required; priceFrom >= 0 (NASA Rule 7)

ARIA

1 rule

WCAG 1.1.1, 2.4.4

Entire card is <a> with descriptive aria-label; image alt required

Usage

Import

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

Example 1

tsxSnippet
<Card title="Event" body="Description" />

Anti-patterns

— Do not hardcode data in molecules

— Avoid complex business logic in molecules

Design System v4.1.0 | ePassLive