Closed insidewhy closed 2 hours ago
Here's my configuration:
const meta: Meta<typeof ButtonComponent> = { title: 'lib/ButtonComponent', component: ButtonComponent, parameters: { slots: { default: 'Click Me', }, }, args: {}, }
But when I view the story there is no slot.
When I view the docs page I see the parameter description is set to Click Me, but according to the docs and what would probably be most useful, when passing a string to a slot it should set the template rather than the description.
Click Me
template
description
Ah sorry I misread the documentation
Here's my configuration:
But when I view the story there is no slot.
When I view the docs page I see the parameter description is set to
Click Me
, but according to the docs and what would probably be most useful, when passing a string to a slot it should set thetemplate
rather than thedescription
.