JoJk0 / storybook-addon-vue-slots

Vue slots support for Storybook.js
MIT License
17 stars 5 forks source link

When not passing an object the parameter sets the description rather than the template #30

Closed insidewhy closed 2 hours ago

insidewhy commented 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.

insidewhy commented 2 hours ago

Ah sorry I misread the documentation