LobeChatLobeHub
UI
Components
Chat
Mobile
Awesome
Brand
Mdx
Icons
Color
Changelog
Ctrl
K
Built-ins
Callout
Cards
FileTree
Steps
Tabs
Components
Mdx
mdxComponents

Tabs

A component for creating tabbed content in MDX documents that allows switching between different content sections.

import { Tabs, Tab } from '@lobehub/ui/mdx';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
Steps
Next
Mdx

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2025
Made with 🤯 by LobeHub
LobeHub

Example

APIs

Tabs

PropertyDescriptionTypeDefault
itemsArray of tab labelsstring[]-
childrenArray of Tab components or content for each tabReactNode[]-
defaultIndexThe initially active tabnumber | string'0'
tabNavPropsAdditional props for the tab navigation barPartial<LobeTabsProps>{}
classNameAdditional CSS classstring-
styleAdditional stylesCSSProperties-

Tab

PropertyDescriptionTypeDefault
childrenContent of the tabReactNode-
classNameAdditional CSS classstring-
styleAdditional stylesCSSProperties-
pnpm
npm
yarn
pnpm: Fast, disk space efficient package manager.