Template:StorybookComponent: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}|toggle-states={{{toggle-states| | <includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}|toggle-states={{{toggle-states|}}}}}</includeonly> | ||
<noinclude>== Usage == | <noinclude>== Usage == | ||
| Line 20: | Line 20: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"toggle-states": { | |||
"description": "Display a toggle demonstrating different states?", | |||
"type": "boolean" | "type": "boolean", | ||
"default": "false" | |||
} | |||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
| Line 29: | Line 30: | ||
"width", | "width", | ||
"height", | "height", | ||
"toggle-states" | |||
], | ], | ||
"description": "Embeds a Storybook component given its ID" | "description": "Embeds a Storybook component given its ID" | ||
Revision as of 15:22, 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 |
| toggle-states | toggle-states | Display a toggle demonstrating different states?
| Boolean | optional |