Event card
Event details with a prominent date block and independent RSVP controls.
npx @swipeui/cli add event-cardWhen to use it
- Upcoming events, classes, meetups or appointments with a clear date, title and place.
- An events list where people can RSVP or buy tickets right from the card.
- Calendar or booking apps that show who else is going.
- Reminders for a single upcoming event on a home screen.
When not to use it
- A full calendar or date selection. Use Calendar or Date picker.
- A ticket people show at the door. Ticket card is designed to be scanned.
- A schedule of many sessions in one day. Timeline reads better.
- Past activity or history. Use List row or Timeline.
Installation
Installs with a Pro licence
Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.
Usage
import { EventCard } from '@/components/swipeui/card/event-card';
<EventCard title="Morning walk" date="Saturday, 9 am" location="Valley trailhead" />;API reference
EventCardProps
| Prop | Type | Default | Description |
|---|---|---|---|
variant? | | | Surface treatment. |
disabled? | | | Prevent primary activation; footer controls manage their own disabled state. |
haptics? | | | Primary press feedback. |
motion? | | | Shared press character. |
accessibilityHint? | | — | Describes the result of the primary action. |
className? | | — | Classes merged over the surface. |
style? | | — | Native surface layout escape hatch. |
testID? | | — | Root identifier; primary target appends -press. |
title | | — | Event title. |
date | | — | Caller-formatted date (no implicit timezone conversion). |
location | | — | Venue or meeting location. |
attendees? | | — | Attendee summary or avatars. |
actions? | | — | Independent RSVP/ticket actions. |
onPress? | | — | Opens event details. |
Composition and behavior
- A prominent date block sits above the title.
- location follows as a muted line, then the optional attendees slot, for example Avatar group.
- actions is a separate footer row for RSVP or ticket buttons.
- onPress opens details; your app owns RSVP state and navigation.
Behavior and gestures
- Tapping the card opens the event details with the standard press scale and haptic tap.
- RSVP, ticket or calendar buttons in actions work on their own and never open the details.
- Without onPress, only the action buttons are interactive.
Accessibility
- A tappable card reads as one button with title, date and location, for example "Design meetup, Thu 14 Nov, Studio 3".
- The date block is real text, so it's read in full rather than as an icon.
- RSVP and ticket buttons are separate focus stops with their own labels.
- Pass the date already formatted for the user's language and time zone; nothing is converted silently.
Motion
- Uses the
pressmotion role, so it follows your app's feel. Passmotionto tune this one instance. - Uses the shared press scale from your app's feel.
- Reduce Motion removes the scale; taps still work.
Performance
- No timers: it never counts down or re-renders on its own.
- Attendees is a slot, so you control how many avatars render.
Notes for AI
- Format date in the user's locale and time zone before passing it.
- Put RSVP and ticket buttons in actions, not in attendees or the body.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.