docs: clarifications for tabs #538

This commit is contained in:
Sören Weber 2023-05-24 00:13:40 +02:00
parent 7e92610184
commit 69a5aa5b58
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,8 @@ You can use a `tab` shortcode to display a single tab.
This is especially useful if you want to flag your code example with an explicit language.
If you want multiple tabs grouped together you can wrap your tabs into the [`tabs` shortcode]({{% relref "shortcodes/tabs" %}}).
{{% tab name="c" %}}
```python

View file

@ -7,7 +7,7 @@ The `tabs` shortcode displays arbitrary content in an unlimited number of tabs.
This comes in handy eg. for providing code snippets for multiple languages.
If you only want a single tab in your group, you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone.
If you just want a single tab you can instead call the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) standalone.
{{< tabs >}}
{{% tab name="python" %}}
@ -30,6 +30,8 @@ echo "Hello World!"
While the examples are using shortcodes with named parameter you are free to also call this shortcode from your own partials.
See the [`tab` shortcode]({{% relref "shortcodes/tab" %}}) for a description of the parameter for nested tabs.
{{< tabs groupid="shortcode-parameter">}}
{{% tab name="shortcode" %}}