> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify-mintlify-add-hello-world-quickstart-48843.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Tabs

> 使用 Tabs 组件切换内容

使用选项卡将内容组织为多个面板，用户可以在它们之间切换。你可以添加任意数量的选项卡，并在每个选项卡中嵌入其他组件。

<Tabs>
  <Tab title="First tab">
    ☝️ 欢迎来到只有在第一个选项卡中才能看到的内容。

    你可以在选项卡中添加任意数量的组件。比如，一个代码块：

    ```java HelloWorld.java
      class HelloWorld {
          public static void main(String[] args) {
              System.out.println("Hello, World!");
          }
      }
    ```
  </Tab>

  <Tab title="Second tab" icon="leaf">
    ✌️ 这里是只在第二个选项卡中显示的内容。

    这个选项卡还有一个 <Icon icon="leaf" /> 图标！
  </Tab>

  <Tab title="Third tab">
    💪 这里是只在第三个选项卡中显示的内容。
  </Tab>
</Tabs>

````mdx 选项卡示例
<Tabs>
  <Tab title="第一项">
    ☝️ 欢迎来到仅在第一项内可见的内容。

    你可以在选项卡中添加任意数量的组件。例如，一个代码块：
    ```java HelloWorld.java
      class HelloWorld {
          public static void main(String[] args) {
              System.out.println("Hello, World!");
          }
      }
    ```
  </Tab>
  <Tab title="第二项" icon="leaf">
    ✌️ 这里是仅在第二项内的内容。

    这一项还有一个 <Icon icon="leaf" /> 图标！
  </Tab>
  <Tab title="第三项">
    💪 这里是仅在第三项内的内容。
  </Tab>
</Tabs>
````

<div id="properties">
  ## 属性
</div>

<ResponseField name="title" type="string" required>
  选项卡标题。标题越短，导航越便捷。
</ResponseField>

<ResponseField name="icon" type="string">
  [Font Awesome](https://fontawesome.com/icons) 图标、[Lucide](https://lucide.dev/icons) 图标、图标的 URL，或图标的相对路径。
</ResponseField>

<ResponseField name="iconType" type="string">
  仅适用于 Font Awesome 图标：可选值为 `regular`、`solid`、`light`、`thin`、`sharp-solid`、`duotone`、`brands`。
</ResponseField>
