Give the attendee data as parts. The faces are drawn from them.
speaker-badge.tsx
EventBadge
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The parts of the faces: EventBadgeName, EventBadgeEventName, and the others. |
| accent | string | CHERRY | The band, strap, and back color: any CSS color, var(--primary) too. |
| back | boolean | — | The back shows (controlled). |
| default | boolean | false | The back shows at the start (uncontrolled). |
| on | — | Called when Enter or Space turns the card. | |
| on | — | Called when the 3D scene fails to load; the flat badge stays. | |
| foil | boolean | true | A holographic foil on the front that shifts color as the card turns (3D only). |
| sway | boolean | true | A 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. |
| driver | — | 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
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeJobTitle
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeCompany
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeAvatar
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | The photo URL. With none, or when it fails, the initials of the name show. |
EventBadgeEventName
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeYear
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeDate
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgePlace
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeTier
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeNumber
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeTicket
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | The text of the QR code (a ticket link). |
EventBadgeStrap
| Prop | Type | Default | Description |
|---|---|---|---|
| children | string | — |
EventBadgeLogo
| Prop | Type | Default | Description |
|---|---|---|---|
| src | string | — | The logo URL. Another origin needs CORS headers, or WebGL cannot read it. |
| Enter | Turns the badge to the back or the front. |
|---|---|
| Space | Turns the badge to the back or the front. |
| Arrow keys | Push the badge, so it swings (3D only). |









