Props
| Prop | Type | Default | Notes |
|---|---|---|---|
label | string | '' | |
description | string | '' | |
data | array | [] | |
decimals | number | 0 | |
tone | '' | neutral | primary | secondary | tertiary | error | neutral | |
appearance | gradient | line | solid | gradient | |
curve | linear | natural | step | linear |
StellarUI
Inline SVG trend chart for compact data-display surfaces.
<stellar-sparkline
label="Revenue trend"
description="Last 7 days"
data="[10,25,18,30,26,38]"
decimals="1"
tone="primary"
>
</stellar-sparkline>Complete props, events, slots, and implementation notes for the shipped sparkline component.
| Prop | Type | Default | Notes |
|---|---|---|---|
label | string | '' | |
description | string | '' | |
data | array | [] | |
decimals | number | 0 | |
tone | '' | neutral | primary | secondary | tertiary | error | neutral | |
appearance | gradient | line | solid | gradient | |
curve | linear | natural | step | linear |
| Event | Source | Notes |
|---|---|---|
| custom events | none | stellar-sparkline is display-only and does not emit custom events. |
| Slot | Notes |
|---|---|
| none | This component has no slots. It renders one inline SVG chart from the JSON array data prop. |