Skip to content

Event Badge

Pro

A conference badge on a strap in 3D: drag it, throw it, and it swings back. A QR ticket is on the back. Enter or Space turns it.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Event Badge needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
42
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Give the attendee data as parts. The faces are drawn from them.

speaker-badge.tsx

EventBadge

<div>
PropTypeDefaultDescription
childrenReactNode—The parts of the faces: EventBadgeName, EventBadgeEventName, and the others.
accentstringCHERRYThe band, strap, and back color: any CSS color, var(--primary) too.
backboolean—The back shows (controlled).
defaultBackbooleanfalseThe back shows at the start (uncontrolled).
onBackChange—Called when Enter or Space turns the card.
onSceneError—Called when the 3D scene fails to load; the flat badge stays.
foilbooleantrueA holographic foil on the front that shifts color as the card turns (3D only).
swaybooleantrueA very slow idle sway, so the badge never looks frozen. With it, the 3D frame loop runs while the badge is on screen; turn it off to let the badge rest and run no frames.
driverRef—Drives a drag from code (DragDriver, no item): a staged scene or a test takes the 3D card, swings it, and lets go, and the rope physics work as for a hand. Only the 3D badge moves.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

EventBadgeName

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeJobTitle

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeCompany

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeAvatar

PropTypeDefaultDescription
srcstring—The photo URL. With none, or when it fails, the initials of the name show.

EventBadgeEventName

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeYear

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeDate

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgePlace

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeTier

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeNumber

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeTicket

PropTypeDefaultDescription
valueRequiredstring—The text of the QR code (a ticket link).

EventBadgeStrap

PropTypeDefaultDescription
childrenRequiredstring—

EventBadgeLogo

PropTypeDefaultDescription
srcRequiredstring—The logo URL. Another origin needs CORS headers, or WebGL cannot read it.
  • Give the attendee data as parts: EventBadgeName, EventBadgeJobTitle, EventBadgeCompany, EventBadgeTier, EventBadgeNumber, and a ticket link in EventBadgeTicket.
  • Set accent to the brand color, and put the event logo in EventBadgeLogo.
  • Give the stage a size with className. It is 448 × 480 by default.
  • Use back and onBackChange to turn it from a button of your own.
  • For a small label with a status or a count, use a Badge.
  • For a flat person card with no effect, use a Card.
EnterTurns the badge to the back or the front.
SpaceTurns the badge to the back or the front.
Arrow keysPush the badge, so it swings (3D only).

The stage is one tab stop with role="application", aria-roledescription="event badge", and the EventBadgeName text as its name. aria-keyshortcuts lists the keys.

Enter and Space turn the badge. The arrow keys push it only in 3D; on the flat badge they scroll the page.

In 3D the stage takes every touch (touch-action: none), so a finger can drag the badge. Keep it a part of the page, not the full screen.

Flat turn
panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1)
Flat sway
sine · ±1.2° on a 9s cycle, while the badge is on screen
3D fade in
fade · 150ms · the 3D badge fades in over the flat one
  1. AddedEvent Badge.
Open the release