Tabs#

Tabs are good way to organize content, where the reader has choice they can make (usually based on their environment).

While Sphinx does not provide tabs out-of-the-box, it is achievable by using extensions with Sphinx. Furo works well with the following extensions.

sphinx-inline-tabs#

This is a small package that provides one thing: good-looking tabs that work.

.. tab:: One

    First.

.. tab:: Two

    Second.

First.

Second.

```{tab} One
First.
```

```{tab} Two
Second.
```

First.

Second.

sphinx-design#

A wide ranging extension, providing many reusable components for site content, including tabs.

.. tab-set::

    .. tab-item:: Label1

        reStructuredText 1

    .. tab-item:: Label2

        reStructuredText 2

reStructuredText 1

reStructuredText 2

````{tab-set}
```{tab-item} Label1
Markdown 1
```

```{tab-item} Label2
Markdown 2
```
````

Markdown 1

Markdown 2