Skip to content

Commit 8a74e61

Browse files
authored
Merge pull request #1812 from gethinode/templatev2
feat(structures): add body definition to paired shortcodes
2 parents 781019e + 9e70212 commit 8a74e61

4 files changed

Lines changed: 19 additions & 0 deletions

File tree

data/structures/accordion.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ arguments:
99
preview: true
1010
always-open:
1111
class:
12+
body:
13+
type: string
14+
optional: false
15+
group: shortcode
16+
comment: Inner <accordion-item> elements for each panel.
1217
example: |
1318
{{< accordion id="accordion-example" always-open="true" >}}
1419
{{< accordion-item title="First item" show="true" >}}

data/structures/button.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,9 @@ arguments:
9090
for active/inactive buttons.
9191
deprecated: v1.0.0
9292
alternative: collapse-id
93+
body:
94+
type: string
95+
optional: false
96+
comment: Label text of the button.
9397
example: |
9498
{{< button color="primary" href="/docs/" button-size="sm" >}}Learn more{{< /button >}}

data/structures/card-group.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ arguments:
179179
min: 1
180180
deprecated: v1.0.0
181181
alternative: limit
182+
body:
183+
type: string
184+
optional: false
185+
group: shortcode
186+
comment: Inner <card> elements for each card.
182187
example: |
183188
{{< card-group cols="3" >}}
184189
{{< card path="/blog/post-1" >}}

data/structures/nav.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ arguments:
5151
comment: Flag to enable word wrapping of tab titles.
5252
deprecated: v1.0.0
5353
alternative: word-wrap
54+
body:
55+
type: string
56+
optional: false
57+
group: shortcode
58+
comment: Inner <nav-item> elements for each tab or pill.
5459
example: |
5560
{{< nav tab-type="tabs" id="tabs-example" >}}
5661
{{< nav-item title="Tab #1" show="true" >}}

0 commit comments

Comments
 (0)