Insight Card
Life · InsightCard
Something the assistant noticed: what, where it comes from, why it is shown and what to do.
sourcesare chips like the ones under chat answers;whyfolds away behind "Why am I seeing this?".onAccept(withacceptLabel),onSnoozeandonDismissadd the actions.tonesets the accent: info, success, warning or highlight.
Money · 2 h agoYour electricity bill went up 18 %
At your usage, switching to a fixed tariff would save about €140 a year.
Sleep · this weekYou slept 40 minutes longer on walk days
On the five days with a morning walk you fell asleep earlier and woke up less often.
Props
InsightCard
| Prop | Type | Notes |
|---|---|---|
surface? | Surface | `"glass"`: translucent glass over a backdrop (`Ambient`, a photo, a map); `"solid"` opts out inside a glass `UIProvider`. |
title | string | Required |
children? | ReactNode | |
icon? | IconName | |
tone? | "info" | "success" | "warning" | "highlight" | |
meta? | ReactNode | Above the title: area and time ("Money · 2 h ago"). |
sources? | Source[] | Where the insight comes from, as chips (like chat sources). |
why? | ReactNode | Why the assistant shows it; folded away behind "Why am I seeing this?". |
onAccept? | () => void | |
acceptLabel? | string | |
onSnooze? | () => void | |
onDismiss? | () => void | |
className? | string | Extra class on the root element. |
style? | CSSProperties | Inline style on the root element. |