Usage
import { EventSpeakers } from './EventSpeakers.jsx'
<EventSpeakers
locale="en"
speakers={speakers} // [{ id, name, role, bio, session, time: '09:30', room, photo? }]
rooms={{ hall: 'Main hall', studio: 'Studio' }}
loading={!speakers}
error={loadError}
onRetry={reload}
onSelect={(id) => router.push('/speakers/' + id)}
/>Props
| Prop | Type | Default | What it does |
|---|---|---|---|
locale | 'en' | 'zh-CN' | 'es' | 'ja' | 'en' | Language of the built-in text and sample speakers; times follow its format. |
speakers | Array<{ id, name, role, bio, session?, time?, room?, photo?, tone? }> | sample speakers | The people on stage, in order. Without a photo a speaker shows initials. An empty array shows the empty state. |
rooms | Record<string, string> | sample rooms | Names of the rooms a speaker’s `room` refers to. |
loading | boolean | false | Shows the skeleton of the grid while it loads. |
error | boolean | string | false | Shows the error banner with a retry button; a string replaces its sentence. |
onSelect | (id) => void | — | A speaker’s name was pressed, for a speaker page or a dialog. |
onNotify / onRetry | () => void | — | The empty state’s “Tell me when” was pressed; the error banner’s retry was pressed. |
labels | object | — | Replaces any built-in text (keys as in copy.js). |
Add it to your project
Copy the prompt into Codex or Claude Code. The agent reads the published source, shows you what it will write and adds the block together with the components it is built from.
EventSpeakers.jsxevent-speakers.csscopy.jskit.jsxkit.cssui/base-button/ui/avatar-group/ui/empty-state/ui/alert-banner/ui/skeleton-shimmer/ui/hover-card/tokens.cssREADME.md
The block, its stylesheet and text, the shared kit, the components it uses and tokens.css install together into one folder.