Jump to content

Template:StorybookComponent: Difference between revisions

From Swarthmore Knowledge Base
Created page with "<includeonly>{{#widget:StorybookComponent|id={{{id}}}|width={{{width|}}}|height={{{height|}}} }}</includeonly> <noinclude>== Usage == <nowiki>{{StorybookComponent|components-two-column-layout--two-column-layout}}</nowiki> <templatedata> { "params": { "id": { "description": "Storybook component ID", "type": "string", "required": true }, "width": { "description": "The width in pixels of the storybook component", "type": "number" }, "height": {..."
 
No edit summary
Line 14: Line 14:
"width": {
"width": {
"description": "The width in pixels of the storybook component",
"description": "The width in pixels of the storybook component",
"type": "number"
"type": "string"
},
},
"height": {
"height": {
"description": "The height in pixels of the storybook component",
"description": "The height in pixels of the storybook component",
"type": "number"
"type": "string"
}
}
},
},

Revision as of 21:20, 13 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