How to use the @storybook/svelte.addDecorator function in @storybook/svelte

To help you get started, we’ve selected a few @storybook/svelte 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 storybookjs / storybook / examples / svelte-kitchen-sink / .storybook / config.js View on Github external
import { configure, addParameters, addDecorator } from '@storybook/svelte';
import { withA11y } from '@storybook/addon-a11y';

addDecorator(withA11y);
addParameters({
  options: {
    hierarchyRootSeparator: /\|/,
  },
});

configure(require.context('../src/stories', true, /\.stories\.js$/), module);

@storybook/svelte

Storybook Svelte renderer

MIT
Latest version published 17 days ago

Package Health Score

89 / 100
Full package analysis