Slots
Hi! Very useful library, thank you!
Is there a way to pass slots to components from stories?
I haven't found anything on it in readme. Something like this would be very helpful:
```ts
export const Story = {
args: { ...props },
slots: {
title: "Title slot content",
default: "Default slot content"
}
}
```
On implementation side it could look something like:
```tsx
Object.entries(story.slots || {}).map(([name, content]) => (
<Fragment slot={name} set:html={content} />
))
```
2 条评论