mirror of
https://github.com/upstash/context7.git
synced 2026-09-14 19:09:34 +08:00
6d777619c2
Co-authored-by: Context7 Agent <docs-agent@context7.com> Co-authored-by: Josh <josh@upstash.com> Co-authored-by: context7[bot] <236830434+context7[bot]@users.noreply.github.com>
25 lines
408 B
Plaintext
25 lines
408 B
Plaintext
---
|
|
title: Tabs
|
|
description: Switch between related blocks of content
|
|
---
|
|
|
|
Each `<Tab>` needs a `title`.
|
|
|
|
## Usage
|
|
|
|
```mdx
|
|
<Tabs>
|
|
<Tab title="npm">npm install my-package</Tab>
|
|
<Tab title="pnpm">pnpm add my-package</Tab>
|
|
</Tabs>
|
|
```
|
|
|
|
A tab can also have `icon` and `iconType` props.
|
|
|
|
## Example
|
|
|
|
<Tabs>
|
|
<Tab title="npm">npm install my-package</Tab>
|
|
<Tab title="pnpm">pnpm add my-package</Tab>
|
|
</Tabs>
|