A component for displaying a list of insights, recommendations, or key findings with type-based styling.
Use the Insights List pattern when you need to:
- Display AI-generated insights
- Show recommendations or findings
- Present key information in a structured list
- Highlight important observations
| Prop | Type | Required | Description |
|---|---|---|---|
title |
string |
No | List title |
insights |
Insight[] |
Yes | Array of insight objects |
emptyMessage |
string |
No | Message when empty |
className |
string |
No | Additional CSS classes |
info- Default informational stylewarning- Yellow/warning stylingsuccess- Green/success stylingerror- Red/error styling
import { insightsListSchema } from "./schema"
const data = insightsListSchema.parse({
title: "Key Insights",
insights: [
{
id: "1",
title: "Revenue Growth",
description: "Increased by 20%",
type: "success"
}
]
})import { InsightsList } from "./component"
<InsightsList
title="Insights"
insights={[
{
id: "1",
title: "Finding",
description: "Description",
type: "info"
}
]}
/>useRenderToolCall({
toolName: "render_insights_list",
argumentsSchema: insightsListSchema,
render: (props) => <InsightsList {...props} />
})The Insights List component includes full accessibility support:
- Semantic structure - Uses
role="list"androle="listitem"for proper list semantics - ARIA labels - Container has
role="region"with proper labeling - Empty state - Empty message uses
role="status"witharia-live="polite" - Screen reader support - All content is accessible to screen readers
- Decorative elements - Icons are marked with
aria-hidden="true"
✅ rams.ai - Accessible list structure with proper ARIA attributes
✅ ui-skills.com - Schema-driven, LLM-generatable component
✅ Vercel Guidelines - Theme-compatible, responsive design