Skip to content

Tabs

Show alternatives one at a time with Tabs and Tab.

Updated

Use tabs when the reader needs one of several versions of the same content, like an operating system. Arrow keys, Home and End move between tabs.

Install with Homebrew.

MDX
<Tabs>
<Tab title="macOS">
Install with Homebrew.
</Tab>
<Tab title="Linux">
Install with your package manager.
</Tab>
<Tab title="Windows">
Download the installer.
</Tab>
</Tabs>

For tabs of code, CodeGroup is shorter and remembers the reader’s choice.

Tabs takes no props. Specly ignores any Mintlify props you pass it.

titlestringrequired

On Tab: the label on the tab.

Was this page helpful?

Report a problem

What’s the problem?

The docs team sees this. Other readers don’t.