DOCS
v0.4

AI Components / Result Panel

Result Panel

Structured AI analysis panel with tabs (Summary/Data/Sources), impact driver bars, sorting, copy/export, and streaming.

ai-displayv0.1.0

Playground

Examples

Full analysis
<ai-result-panel title="Q4 Revenue Analysis" confidence="91" collapsible style="max-width:520px;"></ai-result-panel>
With sources
<ai-result-panel title="Market Research" confidence="78" style="max-width:520px;"></ai-result-panel>
Streaming
<ai-result-panel title="Analyzing..." streaming style="max-width:520px;"></ai-result-panel>

Import

import { AiResultPanel } from '@cognivo/components';
// Or tree-shake: import '@cognivo/components/ai-result-panel';

Per-component imports ship only that component (~8 kB gzip).

API Reference

PropTypeDefaultDescription
titlestring"AI Analysis"Panel title
explanationstringSummary paragraph
bulletsstring[]Key takeaway bullet points
drivers{factor, impact}[]Impact drivers with bars
confidencenumberConfidence percentage (0-100)
collapsiblebooleanfalseEnable collapse/expand
streamingbooleanfalseShow streaming indicator

Events

EventDetailDescription
ai-result-export{format, title, explanation, bullets, drivers}Export clicked
ai-result-copy{content: string}Content copied