# Spark line

https://fieldbook.lizardi.mx/components/spark-line

Category: Charts
![Still of the Spark line component, a Fieldbook UI component in Charts.](https://fieldbook.lizardi.mx/thumbs/spark-line.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/spark-line-3af68a1f1d.mp4 (5 s, silent)

Spark line: A row of metric tiles whose sparklines draw themselves on mount and follow the pointer with a crosshair that reads the value under it.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| color | color | #38BDF8 | No additional limit in the metadata. |
| smooth | boolean | true | No additional limit in the metadata. |
| points | number | 30 | From 12 to 60; step 1 |

## Usage notes

Spark line uses the wide preview frame with a dark theme setting.

### Which frameworks are available for Spark line?

Spark line is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Spark line depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

### What accessibility details are visible in Spark line?

The React source for Spark line includes: attributes and handlers (aria-hidden, aria-label, onKeyDown, tabIndex); explicit roles (img); key comparisons (ArrowLeft, ArrowRight, Escape). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Spark line handle reduced motion?

Spark line reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: delay: reduce ? 0 : delay; delay: reduce ? 0 : delay + 0.35; delay: reduce ? 0 : delay + 0.85. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "spark-line",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Sessions Line Card](https://fieldbook.lizardi.mx/components/sessions-line-stat-card)
- [Area chart lite](https://fieldbook.lizardi.mx/components/area-chart-lite)
- [Candle Price Chart](https://fieldbook.lizardi.mx/components/candle-price-chart)
- [Donut share chart](https://fieldbook.lizardi.mx/components/donut-share-chart)
- [Engraved label pie](https://fieldbook.lizardi.mx/components/engraved-label-pie)
- [Forecast tail line](https://fieldbook.lizardi.mx/components/forecast-tail-line)
