artifacts.space/Docs
Sign in

Get started

  • Introduction
  • Quickstart
  • Client setup

Reference

  • MCP reference
  • Formats
  • Themes

Work together

  • Sharing, teams, and agents

Run it

  • Limits and quotas
  • Self-hosting

Earlier formats

  • JSON Render
  • Components

    Layout

    • Section
    • Stack
    • Grid
    • Card
    • Tabs
    • Accordion
    • Separator
    • Box

    Content

    • Heading
    • Text
    • Markdown
    • Code
    • Callout
    • Badge
    • List
    • Steps
    • Link
    • Quote
    • Icon
    • Avatar
    • AvatarGroup
    • Kbd
    • Rating

    Data

    • Table
    • Metric
    • Chart
    • KeyValue
    • Progress
    • Timeline
    • Diagram

    Planning

    • Board
    • Calendar

    Inputs

    • Checklist
    • Checkbox
    • Select
    • Switch
    • Slider
    • Button
    • Input
    • Textarea

    Media

    • Image
    • File
    • Placeholder
  • Dynamic props and actions
  • Charts
  • Section templates
  • Validation
  • Stout guarantees
  • Playground
  • Prompting your agent
artifacts.space
DocsSourceSign inCreate accountSupportPrivacyTerms

© 2026 Webrenew LLC

Components · Layout

Tabs

Tabbed panels. Give one tabs entry per child: child N is the panel for tab N.

ExamplesLink to this section

Two panels

The migration finished in 14 minutes with no errors.

Show JSONHide JSON
{
  "version": 1,
  "root": "tabs",
  "elements": {
    "tabs": {
      "type": "Tabs",
      "props": { "tabs": [{ "label": "Summary" }, { "label": "Details" }] },
      "children": ["summary", "details"]
    },
    "summary": {
      "type": "Text",
      "props": { "text": "The migration finished in 14 minutes with no errors." }
    },
    "details": {
      "type": "KeyValue",
      "props": {
        "items": [
          {
            "label": "Rows moved",
            "value": 1284000,
            "format": "compact"
          },
          { "label": "Duration", "value": "14 min" }
        ]
      }
    }
  }
}

PropsLink to this section

Generated from the zod schema the server validates with. Unknown props are ignored with a warning. Any prop can also be a dynamic value such as { "$state": "/path" }; it is checked again once it resolves.

PropTypeLimits and defaults
tabsrequiredobject[]1–12 items
tabs[].labelrequiredstringmax 60 chars
defaultIndexinteger0–11

RulesLink to this section

  • Give exactly one child per entry in tabs: child N is the panel for tab N.
  • defaultIndex picks the tab that opens first (0-based).
  • Do not give Tabs repeat: the panels pair with the tabs by their place in the spec, so write each panel out. Tabs with repeat still draw, with a warning.

ChildrenLink to this section

Tabs shows its children, in order.

It emits no events.

Edit this page on GitHub
PreviousCardNextAccordion

On this page

  • Examples
  • Props
  • Rules
  • Children