Meeting grid
A video call with a note taking assistant: initials tiles with a speaking ring, the assistant's tile with the voice orb, captions that roll up, and notes that fill in with decisions and action items.
On this page
Installation
Usage
import { MeetingGrid } from "@/components/ui/chatcn/meeting-grid"
<MeetingGrid
title="Clinic pilot pricing"
elapsed="12:04"
people={[
{ id: "th", name: "Tomás Herrera", initials: "TH" },
{ id: "rk", name: "Rohan Kulkarni", initials: "RK" },
{ id: "lv", name: "Lena Vogt", initials: "LV", muted: true, self: true },
]}
assistant={{ name: "Wren", state: "listening", level: getRoomLevel }}
speaking="rk"
level={getSpeakerLevel}
captions={[
{ id: "c1", speaker: "Rohan Kulkarni", text: "Then 38 a seat and no setup fee.", live: true },
]}
notes={[
{ id: "d1", kind: "decision", text: "38 a seat, setup fee waived", at: "12:02" },
{ id: "a1", kind: "action", text: "RK: send the revised quote by Friday", at: "12:04" },
]}
/>The window lays out at a true 1280 by 760 viewport and scales to fit. The stage is near black in light and dark, like every call app, and the notes panel wears the page's own surface. People are initials on five calm tones taken from the theme's status hues; there are no photos and no avatars to supply. The note taker's tile is last in the grid and holds the free voice orb, which listens to the room when you pass it a level.
The speaking ring is 2 px in the primary, lifted until it reads on the stage, so the ink theme gets a light ring and a coloured theme keeps its hue. Its opacity follows level from 0.4 to 1, read once per frame when you pass a getter, rising fast and falling slowly so it breathes with the voice instead of flickering between syllables.
Captions show two lines. Append to a caption's text as words are heard; when a word starts a new line the block rolls up one line, continuing any roll still in flight. The bar is a log, and screen readers hear each caption once, when it is no longer live. Notes added after mount open their row so the section below glides down, then their words append at 40 ms each with no effect on them. Each note carries the meeting time it came up, and a polite region reads it out once it has arrived. Under 760 px the notes move under the stage. "Leave" is neutral with an outline: red stays for errors.
Examples
States
Two people, four people, notes still empty, a narrow 390 viewport and dark.
Props
| Prop | Type | Notes |
|---|---|---|
people | { id, name, initials, tone?, muted?, self? }[] | tone 1 to 5; self reads You and follows the mic button |
assistant | { name, state?, level? } | The note taker's tile with the voice orb |
speaking | string | null | Id of the person wearing the ring |
level | number | () => number | The speaker's level; a getter animates without re-rendering |
captions | { id, speaker, text, live? }[] | The last lines show; append to text |
notes | { id, kind, text, at, streaming? }[] | kind is decision or action; at is the meeting time |
title, elapsed | string | The meeting name and clock in the control bar |
defaultCaptions | boolean | Captions shown at first; the captions button toggles them |
onLeave | () => void | |
clearing | boolean | Fades the captions and new notes before a loop restarts |
viewport, width, bezel, radius | From FrameLite; default 1280 by 760 |