Jump to content

Template:StorybookComponent: Difference between revisions

From Swarthmore Knowledge Base
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}|toggle-states={{{toggle-states|false}}}}}</includeonly>
<includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}}}}</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"
},
"toggle-states": {
"description": "Display a toggle demonstrating different states?",
"type": "boolean",
"default": "false"
}
}
},
},
Line 29: Line 24:
"id",
"id",
"width",
"width",
"height",
"height"
"toggle-states"
    ],
],
"description": "Embeds a Storybook component given its ID"
"description": "Embeds a Storybook component given its ID"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Revision as of 15:24, 14 May 2026

Usage

{{StorybookComponent|components-two-column-layout--two-column-layout}}

Embeds a Storybook component given its ID

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
idid

Storybook component ID

Stringrequired
widthwidth

The width in pixels of the storybook component

Stringoptional
heightheight

The height in pixels of the storybook component

Stringoptional