How to use the @storybook/preact.load function in @storybook/preact

To help you get started, we’ve selected a few @storybook/preact 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 / preact-kitchen-sink / .storybook / config.js View on Github external
/** @jsx h */
import { load, addParameters } from '@storybook/preact';

addParameters({
  options: {
    hierarchySeparator: /\/|\./,
    hierarchyRootSeparator: /\|/,
  },
});

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

@storybook/preact

Storybook Preact renderer

MIT
Latest version published 2 days ago

Package Health Score

95 / 100
Full package analysis