docs: avoid empty tabs using groupId

This commit is contained in:
Sören Weber 2022-05-29 23:35:16 +02:00
parent 0efceeb8c6
commit d42b1b04ed
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
2 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ It is all about the boxes.
While the examples are using named parameter you are free to use positional aswell.
{{< tabs >}}
{{< tabs groupId="shortcode-parameter">}}
{{% tab name="named" %}}
````go

View file

@ -30,7 +30,7 @@ echo "Hello World!"
Renders as:
{{< tabs >}}
{{< tabs groupId="tabs-example-language" >}}
{{% tab name="python" %}}
```python
print("Hello World!")
@ -50,7 +50,7 @@ echo "Hello World!"
Tab views with the same tabs that belong to the same group sychronize their selection:
{{< tabs >}}
{{< tabs groupId="tabs-example-language" >}}
{{% tab name="python" %}}
```python
print("Hello World!")
@ -94,7 +94,7 @@ Hello = World
Renders as:
{{< tabs groupId="config" >}}
{{< tabs groupId="tabs-example-config" >}}
{{% tab name="json" %}}
```json
{