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

To help you get started, we’ve selected a few @open-wc/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 open-wc / open-wc / packages / generator-open-wc / generators / publish-storybook / templates / static / stories / index.stories.options.js View on Github external
import { unsafeStatic } from '@open-wc/storybook';

// eslint-disable-next-line import/no-mutable-exports
export let opts = {
  tag: unsafeStatic('<%= tagName %>'),
  header: '<<%= tagName %>>',
};

export function setOptions(newOptions) {
  opts = newOptions;
}

@open-wc/storybook

Storybook configuration following open-wc recommendations

MIT
Latest version published 6 years ago

Package Health Score

64 / 100
Full package analysis

Similar packages