{
  "id": "sparkline",
  "name": "Sparkline",
  "level": "atom",
  "status": "stable",
  "purpose": "A trend in one line, with the current value marked.",
  "description": "A trend without axes, for a MetricCard or a table cell. The line wears the subtle content tone; only the current value — the last point — wears a series colour. `label` is required: it is the accessible name, read with the latest value. No tooltip, no draw-in animation (ADR-035). For axes and exact values use Chart.",
  "role": "content",
  "import": "@rrios-forge/ui/atoms/sparkline",
  "exports": [
    "Sparkline",
    "sparklineVariants",
    "SPARKLINE_SIZES"
  ],
  "source": "packages/ui/src/atoms/sparkline",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    }
  ],
  "needs": [
    {
      "need": "A trend in a tile or a row",
      "answer": "`Sparkline` (in `MetricCard`'s `trend` slot)"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [
    {
      "id": "ADR-036",
      "title": "Data visualization: colour roles, a grammar, and three components on plain SVG"
    }
  ],
  "stories": [
    {
      "name": "Playground",
      "id": "components-atoms-sparkline--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "high-contrast",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-sparkline--playground",
      "frame": "/iframe.html?id=components-atoms-sparkline--playground&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-atoms-sparkline--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-sparkline--sizes",
      "frame": "/iframe.html?id=components-atoms-sparkline--sizes&viewMode=story"
    },
    {
      "name": "With gaps",
      "id": "components-atoms-sparkline--with-gaps",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-sparkline--with-gaps",
      "frame": "/iframe.html?id=components-atoms-sparkline--with-gaps&viewMode=story"
    },
    {
      "name": "In a MetricCard",
      "id": "components-atoms-sparkline--in-metric-card",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-sparkline--in-metric-card",
      "frame": "/iframe.html?id=components-atoms-sparkline--in-metric-card&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/atoms/sparkline.stories.tsx"
}
