storybookjs / addon-svelte-csf

[Incubation] CSF using Svelte components.
MIT License
98 stars 29 forks source link

Unable to set slot description or default value #146

Closed RavenX86 closed 8 months ago

RavenX86 commented 8 months ago

I am not sure if this is the right repo to ask this but the svelte parse automatically detects the slots and named slots inside the component, but there seems virtually no way to set the description for it, make int control text, or use said value in the template. I tried creating an argType default with category slots, but instead of overriding the autogenerated one, it creates it beneath it.

CleanShot 2023-10-12 at 19 42 17@2x

CleanShot 2023-10-12 at 19 52 36@2x

j3rem1e commented 8 months ago

You can see an example here : https://github.com/alexprey/sveltedoc-parser/blob/dev/examples/SlotList.svelte