Skip to contentSkip to Content

Tabs

Generic tabbed content panels for organizing alternative content views. Unlike CodeGroup (which is code-only), Tabs supports any content including text, tables, images, and nested components.

API

Tabs

PropTypeDefaultDescription
childrenReactNodeOne or more <TabItem> elements.

TabItem

PropTypeDefaultDescription
labelstringThe tab label shown in the tab bar.
childrenReactNodeContent displayed when this tab is active.

Example

Install with pip: pip install my-library

<Tabs> <TabItem label="Python"> Install with pip: `pip install my-library` ```python import my_library client = my_library.Client() ``` </TabItem> <TabItem label="Node.js"> Install with npm: `npm install my-library` ```javascript import { Client } from "my-library"; const client = new Client(); ``` </TabItem> <TabItem label="Go"> Install with go get: `go get github.com/example/my-library` </TabItem> </Tabs>