{
  "$schema": "https://next.0build.dev/schema/component.v1.json",
  "accessibility": {
    "aria": [],
    "notes": []
  },
  "attributes": [],
  "category": "navigation",
  "children": [],
  "cssClasses": [
    {
      "appliesTo": ".z-tab",
      "class": ".z-tab",
      "description": "Underline tablist: a flex list of links or buttons sharing a baseline, with an active underline. Mark the active item `.z-active` and disabled items `.z-disabled`.",
      "role": "root"
    },
    {
      "appliesTo": ".z-tab",
      "class": ".z-tab-alt",
      "description": "Pill-style tablist variant: a rounded track whose active item is a raised pill. Use in place of `.z-tab`.",
      "role": "element"
    },
    {
      "appliesTo": ".z-tab",
      "class": ".z-tab-bottom",
      "description": "Moves the baseline and the active border to the top edge of the tablist.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-tab",
      "class": ".z-tab-left",
      "description": "Vertical tablist drawn on the left side, with the baseline and active bar on its right edge.",
      "role": "modifier"
    },
    {
      "appliesTo": ".z-tab",
      "class": ".z-tab-right",
      "description": "Vertical tablist drawn on the right side, with the baseline and active bar on its left edge.",
      "role": "modifier"
    }
  ],
  "cssVars": [
    {
      "affects": [
        "border-color"
      ],
      "default": "var(--z-primary)",
      "description": "Border color of the active tab's underline or side bar.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-active-border-color",
      "scope": ".z-tab > .z-active > a, .z-tab > .z-active > button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-color"
      ],
      "default": "100%",
      "description": "Opacity applied to the active border color.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-active-border-color-o",
      "scope": ".z-tab > .z-active > a, .z-tab > .z-active > button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-bg)",
      "description": "Background of the active pill, also used by the sliding indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-active-bg",
      "scope": ".z-tab-alt",
      "syntax": "<color>"
    },
    {
      "affects": [
        "box-shadow"
      ],
      "default": "var(--z-global-shadow-small)",
      "description": "Shadow of the active pill and the sliding indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-active-shadow",
      "scope": ".z-tab-alt",
      "syntax": ""
    },
    {
      "affects": [
        "padding"
      ],
      "default": "0.25rem",
      "description": "Outer padding of the pill tablist track.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-padding",
      "scope": ".z-tab-alt",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "0 0.75rem",
      "description": "Inner padding of each pill tab link.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-padding-inner",
      "scope": ".z-tab-alt",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius)",
      "description": "Corner radius of the pill tablist track.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-radius",
      "scope": ".z-tab-alt",
      "syntax": "<length>"
    },
    {
      "affects": [
        "border-radius"
      ],
      "default": "var(--z-global-radius-small)",
      "description": "Corner radius of the active pill and the sliding indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-radius-inner",
      "scope": ".z-tab-alt",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "150ms cubic-bezier(0.16, 1, 0.3, 1)",
      "description": "Transition timing for pill color and indicator movement.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-alt-transition",
      "scope": ".z-tab-alt",
      "syntax": ""
    },
    {
      "affects": [
        "border-bottom",
        "border-left"
      ],
      "default": "var(--z-border)",
      "description": "Color of the tablist baseline (the bottom border, or the side border in left/right layouts).",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-border-color",
      "scope": ".z-tab",
      "syntax": "<color>"
    },
    {
      "affects": [
        "border-bottom",
        "border-left"
      ],
      "default": "var(--z-border-o)",
      "description": "Opacity applied to the baseline color.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-border-o",
      "scope": ".z-tab",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "font-size"
      ],
      "default": "var(--z-global-font-size-small)",
      "description": "Font size of tab links.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-font-size",
      "scope": ".z-tab",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "var(--z-primary)",
      "description": "Color of the sliding active indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-indicator-color",
      "scope": ".z-tab",
      "syntax": "<color>"
    },
    {
      "affects": [
        "height",
        "transform"
      ],
      "default": "0px",
      "description": "Height of the active tab, written by the switcher at runtime to size the indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "hook",
      "name": "--z-tab-indicator-h",
      "scope": ".z-tab[data-indicator-ready]::after",
      "syntax": "<length>"
    },
    {
      "affects": [
        "background-color"
      ],
      "default": "100%",
      "description": "Opacity applied to the indicator color.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-indicator-o",
      "scope": ".z-tab",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "transform",
        "width"
      ],
      "default": "0px",
      "description": "Width of the active tab, written by the switcher at runtime to size the indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "hook",
      "name": "--z-tab-indicator-w",
      "scope": ".z-tab[data-indicator-ready]::after",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transform"
      ],
      "default": "0px",
      "description": "Horizontal offset of the active tab, written by the switcher at runtime to position the indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "hook",
      "name": "--z-tab-indicator-x",
      "scope": ".z-tab[data-indicator-ready]::after",
      "syntax": "<length>"
    },
    {
      "affects": [
        "transform"
      ],
      "default": "0px",
      "description": "Vertical offset of the active tab, written by the switcher at runtime to position the indicator.",
      "file": "src/css/kit-components/tab.css",
      "kind": "hook",
      "name": "--z-tab-indicator-y",
      "scope": ".z-tab[data-indicator-ready]::after",
      "syntax": "<length>"
    },
    {
      "affects": [
        "padding"
      ],
      "default": "0.3125rem 0.625rem",
      "description": "Padding of each tab link.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-item-padding",
      "scope": ".z-tab",
      "syntax": "<length>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-muted-f)",
      "description": "Text color of inactive tab links.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-link-color",
      "scope": ".z-tab > * > a, .z-tab > * > button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "100%",
      "description": "Opacity applied to the inactive link color.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-link-color-o",
      "scope": ".z-tab > * > a, .z-tab > * > button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "column-gap"
      ],
      "default": "0.25em",
      "description": "Gap between a tab link's icon and its label.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-link-gap",
      "scope": ".z-tab",
      "syntax": "<length>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "var(--z-bg-f)",
      "description": "Text color of tab links on hover.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-link-hover-color",
      "scope": ".z-tab > * > a, .z-tab > * > button",
      "syntax": "<color>"
    },
    {
      "affects": [
        "color"
      ],
      "default": "100%",
      "description": "Opacity applied to the hover link color.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-link-hover-color-o",
      "scope": ".z-tab > * > a, .z-tab > * > button",
      "syntax": "<percentage>"
    },
    {
      "affects": [
        "transition"
      ],
      "default": "150ms cubic-bezier(0.16, 1, 0.3, 1)",
      "description": "Transition timing for tab link color and indicator movement.",
      "file": "src/css/kit-components/tab.css",
      "kind": "base",
      "name": "--z-tab-transition",
      "scope": ".z-tab",
      "syntax": ""
    }
  ],
  "dataHooks": [],
  "events": [],
  "i18n": [],
  "icons": [],
  "id": "tab",
  "inherits": [],
  "keyboard": [],
  "kind": "css",
  "methods": [],
  "notes": [
    "This component is styling only: switching behavior, keyboard navigation, and the sliding indicator come from the Switcher controller (`z-switcher`).",
    "The `--z-tab-indicator-x/y/w/h` variables and the `data-indicator-ready` / `data-indicator-animate` attributes are written by the switcher at runtime; theme them rather than setting them by hand.",
    "Without the switcher, mark the active item `.z-active` yourself; the static underline or pill still renders."
  ],
  "parts": {
    "defaultClsTarget": null,
    "defaultStlTarget": null,
    "items": []
  },
  "recipes": [],
  "related": [
    "switcher"
  ],
  "schemaVersion": 1,
  "sources": {
    "css": [
      "src/css/kit-components/tab.css"
    ],
    "cssSelectors": [
      ".z-tab",
      ".z-tab-*"
    ],
    "ts": null
  },
  "summary": "Underline and pill tablist styles with horizontal, bottom, and left/right layouts, plus a sliding active indicator driven by the Switcher controller.",
  "tag": null,
  "title": "Tab"
}
