LabeledSparkline
A sparkline in a labelled tile: the label and the series maximum above the line, “No samples” for none and “
Import
Section titled “Import”import { LabeledSparkline } from "@flanksource/clicky-ui/data";No dedicated Storybook demo is available for this component yet.
The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
format* |
(…) => string |
— | Formats a value for the max label and the single-sample text. |
label* |
string |
— | What the line plots, for example "CPU %". |
values* |
number[] |
— | — |