Relative Content

Tag Archive for storybook

Storybook using string for boolean attributes in code snippet

I’m using storybook to showcase/document some web elements.
I’m using a render function, mainly because the web component uses content(slots), and that was the best way I found to do that.
Everything’s working except for the code snippet that’s shown. I have a boolean attribute/property on the web component called ‘disabled’. I set that up as a boolean argument, but the code snippet shows it as: disabled="". I’d rather have it shown as just disabled.