An AI answer wired to its sources. Markers link each sentence to the source behind it, a card previews the source, a click unfolds the quoted passage, and a line says how much of the answer is backed.
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- sentences
GroundedSentence[]- { id, text, cites?: { source, quote? }[], paragraph? }. Append and grow them while streaming; markers appear once a sentence is complete.
- sources
GroundedSource[]- { id, title, url?, site?, date?, snippet? }. Numbered in order of first citation.
- status
"streaming"|"done"- Default
"done" - Streaming shows a caret after the last sentence and says “backed so far”.
- question
ReactNode- Shown above the answer.
- onOpenSource
(source) => void- When a source chip is opened.
- defaultOpen
{ sentence, source }- Start with one citation open: its quote unfolded and its sentence and source lit.
- Interactions
-- Hover or focus a marker: its sentence and source light up and a card previews the source. Click it: the quoted passage unfolds under the paragraph with the shared words marked. Hover a source chip: every sentence it backs lights up.
| Prop | Type | Default | Description |
|---|---|---|---|
| sentences | GroundedSentence[] | - | { id, text, cites?: { source, quote? }[], paragraph? }. Append and grow them while streaming; markers appear once a sentence is complete. |
| sources | GroundedSource[] | - | { id, title, url?, site?, date?, snippet? }. Numbered in order of first citation. |
| status | "streaming" | "done" | "done" | Streaming shows a caret after the last sentence and says “backed so far”. |
| question | ReactNode | - | Shown above the answer. |
| onOpenSource | (source) => void | - | When a source chip is opened. |
| defaultOpen | { sentence, source } | - | Start with one citation open: its quote unfolded and its sentence and source lit. |
| Interactions | - | - | Hover or focus a marker: its sentence and source light up and a card previews the source. Click it: the quoted passage unfolds under the paragraph with the shared words marked. Hover a source chip: every sentence it backs lights up. |
Accessibility
- Markers are buttons named “Source 2: title, show the quote”, with aria-expanded; the preview card is their description.
- Highlights follow focus as well as the pointer, so keyboard users get the same links between sentences and sources.
- The coverage line is announced when the answer is done, not on every streamed word.
When to use
When to use
- A chat answer with its sources: support, research, policy or anything people must be able to check.
- Showing which sentences are backed, and by which passage, as the answer streams.
When not to use
- A short answer with a list of sources: use AI Answer.
- Search results across many pages: use Search Results.
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 Grounded Answer to my app and wire it to my own data.
- I need a chat answer with its sources: support, research, policy or anything people must be able to check. Set that up with the Knowns UI Grounded Answer.
- Which Grounded Answer props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "grounded-answer" }) and search_docs({ query: "grounded answer" }). Pro props, full examples and source come back once your license key is in the MCP config.