This page shows the most common ways that sphinx-togglebutton is used as a reference.
This is a benchmark for styling, and also helps demonstrate the behavior of this extension.
Here's a button that will toggle all items of a particular type
With a custom title:
Here's a paragraph, it's just here to provide some text context for the togglebuttons in this section.
:::{note} :class: toggle
A test toggle admonition. :::
Here's a paragraph, it's just here to provide some text context for the togglebuttons in this section.
:::{toggle} A test toggle directive. :::
Here's a paragraph, it's just here to provide some text context for the togglebuttons in this section.
Here's how they look right after one another:
:::{note} :class: toggle
This is my note. :::
:::{note} :class: toggle
This is my second. :::
:::{toggle} This is my first. :::
:::{toggle} This is my second. :::
:::{admonition} A really long admonition that will take up multiple lines A really long admonition that will take up multiple lines :class: toggle
Admonition content.
:::