--- title: Tabs --- ## Example {{< tabs items="JSON,YAML,TOML" >}} {{< tab >}}**JSON**: JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.{{< /tab >}} {{< tab >}}**YAML**: YAML is a human-readable data serialization language.{{< /tab >}} {{< tab >}}**TOML**: TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics.{{< /tab >}} {{< /tabs >}} ## Usage ### Default ``` {{}} {{}}**JSON**: JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.{{}} {{}}**YAML**: YAML is a human-readable data serialization language.{{}} {{}}**TOML**: TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics.{{}} {{}} ``` ### Specify Selected Index Use `defaultIndex` property to specify the selected tab. The index starts from 0. ``` {{}} {{}}**JSON**: JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.{{}} {{}}**YAML**: YAML is a human-readable data serialization language.{{}} {{}}**TOML**: TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics.{{}} {{}} ``` The `YAML` tab will be selected by default. {{< tabs items="JSON,YAML,TOML" defaultIndex="1" >}} {{< tab >}}**JSON**: JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax.{{< /tab >}} {{< tab >}}**YAML**: YAML is a human-readable data serialization language.{{< /tab >}} {{< tab >}}**TOML**: TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics.{{< /tab >}} {{< /tabs >}}