--- title: Tabs createTime: 2025/03/24 21:13:58 icon: vaadin:tabs permalink: /en/guide/markdown/tabs/ --- ## Overview Markdown supports tabs functionality. ## Syntax You need to wrap the tabs in a `tabs` container. You can add an id suffix to the `tabs` container, which will be used as the tab id. All tabs with the same id will share the same toggle event. ```md ::: tabs#fruit ::: ``` Within this container, you should use the `@tab` tag to mark and separate the tab content. After the `@tab` tag, you can add the text `:active` to default activate the tab, and the subsequent text will be parsed as the tab title. ```md ::: tabs @tab Title 1 @tab Title 2 @tab:active Title 3 ::: ``` By default, the title will be used as the tab's value, but you can override it with an id suffix. ```md ::: tabs @tab Title 1 @tab Title 2#Value 2 ::: ``` You can use Vue syntax and components within each tab, and you can access value and isActive, which represent the tab's bound value and whether the tab is active. ## Example **Input:** ```` ::: tabs @tab npm npm should be installed together with Node.js. @tab pnpm ```sh corepack enable corepack use pnpm@8 ``` ::: ```` **Output:** ::: tabs @tab npm npm should be installed together with Node.js. @tab pnpm ```sh corepack enable corepack use pnpm@8 ``` :::