Apifox Markdown English
  1. Components
Apifox Markdown English
  • Welcome to Apifox Markdown
  • Basic Syntax and Features
    • Title and Text
    • Lists & Tables
    • Image
    • Video
    • Code
    • Icon
    • Tailwind CSS Supports
  • Components
    • Admonition
    • Hightlight
    • Accordion
    • AccordionGroup
    • Multiple Columns
    • Card
    • Card Group
    • Image Frame
    • Image Background
    • Step
    • Tab
    • Tip
    • Copy to Clipboard
    • Text Hover Tip
    • Container
    • Text Drawing - Mermaid
      • Graph
      • Sequence Diagram
      • Class Digram
      • State Diagram
      • Entity Relationship Diagram
      • Journey Map
      • Gantt Chart
      • Pie Chart
    • Formula
      • Inline Formula
      • Block-level Formula
  • Other Questions
    • Shortcuts
  1. Components

Tab

The Tabs component allows you to combine multiple Tab components together, where different tabs can be switched.

Example#

First Tab
Second Tab
Third Tab
This is the content of the first tab.
Code:
<Tabs>
    <Tab title="First Tab">
        This is the content of the first tab.
    </Tab>
    <Tab title="Second Tab">
        This is the content of the second tab.
    </Tab>
        <Tab title="Third Tab">
        This is the content of the third tab.
    </Tab>
</Tabs>
You can add any number of tabs. The content of the Tab component follows Markdown syntax.

Specifying Tab Position#

第一个选项卡
第二个选项卡
第三个选项卡
这是第一个选项卡中的内容.
代码:
<Tabs tabPosition="left">
    <Tab title="第一个选项卡">
        这是第一个选项卡中的内容.
    </Tab>
    <Tab title="第二个选项卡">
        这是第二个选项卡中的内容.
    </Tab>
        <Tab title="第三个选项卡">
        这是第三个选项卡中的内容.
    </Tab>
</Tabs>

Specifying Tab Size#

第一个选项卡
第二个选项卡
第三个选项卡
这是第一个选项卡中的内容.
代码:
<Tabs size="small">
    <Tab title="第一个选项卡">
        这是第一个选项卡中的内容.
    </Tab>
    <Tab title="第二个选项卡">
        这是第二个选项卡中的内容.
    </Tab>
        <Tab title="第三个选项卡">
        这是第三个选项卡中的内容.
    </Tab>
</Tabs>

Parameter Description#

Tabs

Tab

Modified at 2024-06-28 04:12:46
Previous
Step
Next
Tip
Built with