The teacher's view of a live question: answers against the class size, a bar per choice, who has not answered, and Reveal and Next.
Used for
- A teacher view beside a live question
- A host panel for a stream
- A poll results screen
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- question
QuizQuestion- The question being asked.
- responses
QuizResponse[]- Every response so far.
- students
Student[]- The class: its length is the class size and it names who is missing.
- revealed / onReveal / onNext
boolean / () => void- The Reveal and Next controls.
- position
{ index, total }- Shows "Question 2 of 5" and turns Next into Finish on the last.
- secondsLeft / showNames
number- Default
- / 8 - The clock text, and how many missing names to list.
| Prop | Type | Default | Description |
|---|---|---|---|
| question | QuizQuestion | - | The question being asked. |
| responses | QuizResponse[] | - | Every response so far. |
| students | Student[] | - | The class: its length is the class size and it names who is missing. |
| revealed / onReveal / onNext | boolean / () => void | - | The Reveal and Next controls. |
| position | { index, total } | - | Shows "Question 2 of 5" and turns Next into Finish on the last. |
| secondsLeft / showNames | number | - / 8 | The clock text, and how many missing names to list. |
What it handles
- 01Counts the newest answer of each student, so a changed answer never counts twice.
- 02Draws one bar per choice, scaled to the busiest choice, plus the overall answered bar against the class size.
- 03Lists who has not answered yet and trims the list to a few names and a +N.
- 04Marks the right choices and dims the rest when you reveal.
- 05Keeps every number in a fixed-width column, so a new answer never moves the layout.
States
- An answer arrives
- The answered count ticks up and the bars grow
- 280ms, ease-in-out
- Reveal
- The right choice turns green, the others fade
- 180ms, ease-out
- Reduced motion
- Counts and bars jump to their value
- 0ms
| State | What moves | Timing |
|---|---|---|
| An answer arrives | The answered count ticks up and the bars grow | 280ms, ease-in-out |
| Reveal | The right choice turns green, the others fade | 180ms, ease-out |
| Reduced motion | Counts and bars jump to their value | 0ms |
Works with
When to use
When to use
- The teacher's screen while a question is open: who answered, how they split, who is missing.
- A host panel beside a stream that controls reveal and next.
When not to use
- The view the audience watches: it has no controls: use Stream Overlay.
- Charts of a finished quiz: use Chart.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Live Results to my app and wire it to my own data.
- I need the teacher's screen while a question is open: who answered, how they split, who is missing. Set that up with the Knowns UI Live Results.
- Which Live Results props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "live-results" }) and search_docs({ query: "live results" }). Pro props, full examples and source come back once your license key is in the MCP config.