Component librarySparkline

Sparkline

Pro

Show a compact ordered trend with exact start, end and change context.

npx shadcn@latest add @tidal-pro/sparkline
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/sparkline

Import components/ui/tidal.css, components/ui/sparkline.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

Required string label and ordered {id,label,value} points. Optional formatValue, start/end/change labels, exact changeContent override, changeUnavailableText, tableCaption, emptyContent, inspectable previous/next controls, controlled activePointId, uncontrolled defaultActivePointId and onActivePointChange(pointId,point,source,event). Compatible native figure attributes, className and ref are forwarded; component-owned children and dangerouslySetInnerHTML are excluded and runtime markup is stripped. Nonfinite values and repeated IDs after the first are omitted and visibly counted. Straight segments connect only supplied finite observations; no intermediate values are generated. Consumers own data, formatting and controlled inspection acceptance.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.