Invite card
CompositionAn event invitation with participant avatars and a reversible local RSVP, composed from Cojeev primitives.
Try it
Add to your project
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/invite-card.jsonThe command includes the component’s shared dependencies. Your project keeps editable source files.
Include the complete example
This example also composes typography. Install its parts together:
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/invite-card.json https://luv-jeri.github.io/cojeev-ui/r/typography.jsonUsing invite card
Import InviteCard from the invite-card entry. Set name, description, inviteDate, inviteTime and inviteLocation to describe the event.
Pass up to four participants as {name, initials}. The yes/no controls update the local rsvp state and emit onAction with action='rsvp' and value='yes' or 'no'.
Use controlled state/onStateChange when the response belongs to your application. Persistence and delivery remain the consumer's responsibility.
The documentation example is a fictional invitation. Its responses stay in the preview and send no invitation, email or calendar update.
API
Compose the exported parts below. The prop types are read from the React source during the registry build.
Native element or underlying primitive props are inherited where declared, including accessible labels, event handlers and refs.
Accessibility
Event details are text; native RSVP buttons remain keyboard accessible and expose their current selection.
The quiet-motion settings preserve assembled, usable controls and readable invitation details.
States and appearance
For conditional content, keep a MotionPresence boundary around keyed MotionSurface children. The shared entrance and exit states work with native primitives and respect your motion preference.
Try pointer and keyboard interaction, and switch the appearance control in the navigation to compare light and dark mode. Motion respects reduced motion preferences.