Template:StorybookComponent: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}}}</includeonly> | <includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}|toggleState={{{toggleState|}}}}}</includeonly> | ||
<noinclude>== Usage == | <noinclude>== Usage == | ||
| Line 19: | Line 19: | ||
"description": "The height in pixels of the storybook component", | "description": "The height in pixels of the storybook component", | ||
"type": "string" | "type": "string" | ||
}, | |||
"toggleState": { | |||
"type": "boolean", | |||
"default": "0" | |||
} | } | ||
}, | }, | ||
| Line 24: | Line 28: | ||
"id", | "id", | ||
"width", | "width", | ||
"height" | "height", | ||
"toggleState" | |||
], | |||
"description": "Embeds a Storybook component given its ID" | "description": "Embeds a Storybook component given its ID" | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 15:27, 14 May 2026
Usage
{{StorybookComponent|components-two-column-layout--two-column-layout}}
Embeds a Storybook component given its ID
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| id | id | Storybook component ID | String | required |
| width | width | The width in pixels of the storybook component | String | optional |
| height | height | The height in pixels of the storybook component | String | optional |
| toggleState | toggleState | no description
| Boolean | optional |