---
title: Tabs
description: JSON Schema for the Tabs component.
---

Tab container — children must be `Tab` components.

```json
{
  "type": "object",
  "properties": {
    "type": {
      "const": "Tabs",
      "default": "Tabs",
      "type": "string"
    },
    "id": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "HTML id attribute for CSS targeting. Applied to the outermost element."
    },
    "cssClass": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "CSS/Tailwind classes for styling. Accepts a Responsive() for breakpoint-aware classes."
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "Component"
      }
    },
    "let": {
      "additionalProperties": true,
      "type": [
        "object",
        "null"
      ],
      "default": null,
      "description": "Scoped bindings available to children. Values are template strings."
    },
    "name": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "State key for reactive binding. Auto-generated if omitted."
    },
    "variant": {
      "default": "default",
      "description": "Visual style \u2014 'default' (pill) or 'line' (underline)",
      "enum": [
        "default",
        "line"
      ],
      "type": "string"
    },
    "defaultValue": {
      "type": [
        "string",
        "null"
      ],
      "default": null,
      "description": "Value of the initially active tab"
    },
    "orientation": {
      "default": "horizontal",
      "description": "Layout direction \u2014 'horizontal' (default) or 'vertical'",
      "enum": [
        "horizontal",
        "vertical"
      ],
      "type": "string"
    },
    "onChange": {
      "$ref": "Action",
      "description": "Action(s) when the active tab changes",
      "default": null
    }
  },
  "required": [
    "type"
  ]
}
```
