Skip to content

Content tabs Material

FormSyntaxUsage
Onglet=== "Title"Alternative content.
Icon=== ":material-code-tags: Syntax"Icon in the label.
CodeIndented fence under a tabSnippet per language.
ListsLists indenteesContent variants.
ImbricationTabs inside tabsSupport based on indentation.
~~~ py linenums="1"
print("Hello world")
~~~

~~~ js linenums="1"
console.log("Hello world");
~~~
print("Hello world")
console.log("Hello world");
=== "Unordered list"

    * Sed sagittis eleifend rutrum
    * Donec vitae suscipit est
    * Nulla tempor lobortis orci

=== "Ordered list"

    1. Sed sagittis eleifend rutrum
    2. Donec vitae suscipit est
    3. Nulla tempor lobortis orci
  • Sed sagittis eleifend rutrum
  • Donec vitae suscipit est
  • Nulla tempor lobortis orci
  1. Sed sagittis eleifend rutrum
  2. Donec vitae suscipit est
  3. Nulla tempor lobortis orci
=== ":material-file-document-outline: Preview"

    The panel can contain text, a list, and a code block.

    * API
    * CLI
    * Interface web

    ``` yaml title="mkdocs.yml"
    theme:
      name: material
    ```

=== ":material-information-outline: Notes"

    Another panel can stay purely editorial.

    > Content tabs reuse the same `=== "Label"` syntax.

The panel can contain text, a list, and a code block.

  • API
  • CLI
  • Interface web
mkdocs.yml
theme:
  name: material

Another panel can stay purely editorial.

Content tabs reuse the same === "Label" syntax.