mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 04:31:06 +08:00
Storybook Docs for Lit
Installation
- Be sure to check the installation section of the general addon-docs page before proceeding.
WIP
Props tables
WIP
Stories not inline
By default stories are rendered inline. For web components that is usually fine as they are style encapsulated via shadow dom. However when you have a style tag in you template it might be best to show them in an iframe.
To always use iframes you can set
addParameters({
docs: {
inlineStories: false,
},
});
or add it to individual stories.
<Story inline={false} />
More resources
Want to learn more? Here are some more articles on Storybook Docs: