Skip to content

Write HTML. Render video. Built for agents.

2.1 KB
Raw Blame
{
  "$schema": "https://hyperframes.heygen.com/schema/registry-item.json",
  "name": "tabs-slide-indicator",
  "type": "hyperframes:component",
  "title": "Tabs Slide Indicator",
  "description": "A pill indicator transition that slides between active tabs",
  "tags": ["transition-primitive", "transitions-dev-port", "tabs", "indicator"],
  "files": [
    {
      "path": "tabs-slide-indicator.html",
      "target": "compositions/components/tabs-slide-indicator.html",
      "type": "hyperframes:snippet"
    }
  ],
  "variables": [
    {
      "id": "accent",
      "type": "enum",
      "role": "style",
      "label": "Accent",
      "description": "Fill of the sliding pill. ink is literal; the rest ride the composition theme tokens.",
      "default": "ink",
      "options": [
        { "value": "ink", "label": "Ink" },
        { "value": "green", "label": "Green" },
        { "value": "blue", "label": "Blue" },
        { "value": "violet", "label": "Violet" }
      ]
    },
    {
      "id": "width",
      "type": "enum",
      "role": "layout",
      "label": "Tab width",
      "description": "Width of one tab. The slide the timeline drives is scaled to match, so the pill still lands on the next tab.",
      "default": "standard",
      "options": [
        { "value": "compact", "label": "Compact" },
        { "value": "standard", "label": "Standard" },
        { "value": "wide", "label": "Wide" }
      ]
    },
    {
      "id": "shape",
      "type": "enum",
      "role": "style",
      "label": "Shape",
      "description": "Corner radius of the track and the pill.",
      "default": "pill",
      "options": [
        { "value": "pill", "label": "Pill" },
        { "value": "rounded", "label": "Rounded" },
        { "value": "square", "label": "Square" }
      ]
    },
    {
      "id": "labels",
      "type": "string",
      "role": "content",
      "label": "Labels",
      "description": "The tab names, separated by commas. Two or more names rebuild the row.",
      "default": "Plan,Debug,Ask"
    }
  ],
  "preview": {
    "poster": "https://static.heygen.ai/hyperframes-oss/docs/images/catalog/components/tabs-slide-indicator.png"
  }
}