How to use the @open-wc/demoing-storybook.addDecorator function in @open-wc/demoing-storybook

To help you get started, we’ve selected a few @open-wc/demoing-storybook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bennypowers / stripe-elements / .storybook / preview.js View on Github external
async function run() {

  await fetch(new URL('../custom-elements.json', import.meta.url))


    a11y: {
      config: {},
      options: {
        checks: { 'color-contrast': { options: { noScroll: true } } },
        restoreScroll: true
    docs: {
      iframeHeight: '200px'


Storybook configuration following open-wc recommendations

Latest version published 3 years ago

Package Health Score

61 / 100
Full package analysis