Skip to main content

Components

Tabs

Organize content into switchable tab panels.

Basic tabs

Use tabs to present alternative content without taking up extra space:

function greet(name) {
return `Hello, ${name}!`;
}

Installation tabs

A common use case is showing installation commands for different package managers:

npm install example-package

Tabs with mixed content

Tabs can contain any markdown content, not just code:

The basic setup requires minimal configuration:

  1. Install the package
  2. Import the module
  3. Call the function