How to use the @open-wc/demoing-storybook.addParameters 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))
    .then(handleAsJson)
    .then(setCustomElements);

  addDecorator(withA11y);

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

@open-wc/demoing-storybook

Storybook configuration following open-wc recommendations

MIT
Latest version published 4 years ago

Package Health Score

67 / 100
Full package analysis