---
title: "Tabs"
description: "Group related Markdown with accessible, optionally synchronized tabs."
canonical_url: "https://indocio.igrislabs.com/components/tabs"
---

> Index of every page on this site: [llms.txt](https://indocio.igrislabs.com/llms.txt)

## Usage

Use `tabs` and `tab-item` for explanations, commands, or mixed Markdown. Each item requires a title. Provide a stable `value` when synchronizing tabs; values must be unique within a group.

<tabs label="Framework instructions" sync="framework">
<tab-item title="Nuxt" value="nuxt">

Add Indocio to your Nuxt app through `extends`.

</tab-item>

<tab-item title="Vue" value="vue">

Use the IPEX `Ui*` components in your Vue examples.

</tab-item>
</tabs>

```md
::tabs{label="Framework instructions" sync="framework"}

:::tab-item{title="Nuxt" value="nuxt"}
Add Indocio to your Nuxt app through `extends`.
:::

:::tab-item{title="Vue" value="vue"}
Use the IPEX `Ui*` components in your Vue examples.
:::

::
```

These two groups share the `framework` key. Change either group to update both.

<tabs label="Framework details" sync="framework">
<tab-item title="Nuxt" value="nuxt">

Nuxt supplies routing, server rendering, and component registration.

</tab-item>

<tab-item title="Vue" value="vue">

Vue supplies the component model used by IPEX and Akaza UI.

</tab-item>
</tabs>

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        label
      </code>
    </td>
    
    <td>
      <code>
        Examples
      </code>
    </td>
    
    <td>
      Accessible tab-group label
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        default-value
      </code>
    </td>
    
    <td>
      First item
    </td>
    
    <td>
      Initial item value
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        sync
      </code>
    </td>
    
    <td>
      Unset
    </td>
    
    <td>
      Share the selected value with groups using this key during navigation
    </td>
  </tr>
</tbody>
</table>

Groups without `sync` are independent. Package-manager code blocks automatically share their package-manager selection. Use [Code tabs](https://indocio.igrislabs.com/components/code-tabs) for filename-labeled code fences.

## Tab Item

Each `tab-item` must be a direct child of `tabs`. The default slot contains the panel’s Markdown.

### Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        title
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Required
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        value
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Derived from the title
    </td>
  </tr>
</tbody>
</table>

The default slot holds the panel's Markdown. Values must be unique within the group. Supply stable values when using the parent's `sync` prop.

## Sitemap

See the full [sitemap](https://indocio.igrislabs.com/sitemap.md) for all pages.
