Skip to content
Cojeev UI

Invite card

Composition

An event invitation with participant avatars and a reversible local RSVP, composed from Cojeev primitives.

React · copy into your project · light and dark themes

Try it

Loading preview…

Take it with you

Copy the example, API and usage notes for your editor or AI assistant.

Add to your project

Terminal
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/invite-card.json

The 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:

Terminal
npx shadcn@latest add https://luv-jeri.github.io/cojeev-ui/r/invite-card.json https://luv-jeri.github.io/cojeev-ui/r/typography.json

Using 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

restaccepteddeclinedreduced-motion

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.