Sparkline
Sparkline — Prism component.
Signature
Density
Viewport
Theme follows the navbar ☀/☾ toggleWhen to use
Sparkline — Prism component.
Accessibility
Each chart ships an accessible fallback (a visually-hidden data table / aria-label summary) so the data is available to screen readers, not just sighted users. Colour is paired with shape/label, never used alone.
Import
const { Sparkline } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
data | number[] | Yes | |
height | number | — | |
color | string | — | |
area | boolean | — | |
strokeWidth | number | — | |
label | string | — |