How to use the @storybook/riot.mount function in @storybook/riot

To help you get started, we’ve selected a few @storybook/riot 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 / lib / cli / generators / RIOT / template / stories / 0-Welcome.stories.js View on Github external
export const toStorybook = () => mount('welcome', { showApp: () => linkTo('Button') });
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / story-code.stories.js View on Github external
  .add('built from the precompilation', () => mount('anothertest', {}), {
    notes: 'WARN, only works in lower case, never upper case with precompiled templates',
github storybookjs / storybook / lib / cli / generators / RIOT / template / stories / index.stories.js View on Github external
storiesOf('Welcome', module).add('to Storybook', () =>
  mount('welcome', { showApp: () => linkTo('Button') })
);
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / index.js View on Github external
storiesOf('Welcome', module).add('Welcome', () =>
  mount('welcome', { goToButton: linkTo('Button') })
);
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / addon-links.stories.js View on Github external
export const goToWelcome = () =>
  mount('my-button', {
    rounded: true,
    content: 'This button links to Welcome',
    value: 'with a parameter',
    handleClick: linkTo('Welcome', 'Welcome'),
  });
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / addon-actions.stories.js View on Github external
export const actionOnly = () =>
  mount('my-button', {
    handleClick: action('button-click'),
    content: 'Click me to log the action',
  });
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / story-code.stories.js View on Github external
() =>
      tag('test', '<div>simple test ({ opts.value })</div>', '', '', () =&gt; {}) &amp;&amp;
      mount('test', { value: 'with a parameter' })
  )
github storybookjs / storybook / examples / riot-kitchen-sink / src / stories / core.stories.js View on Github external
export const passedToStory = ({ parameters: { fileName, ...parameters } }) =>
  mount('parameters', { ...parameters, storyParameter });

@storybook/riot

Storybook for riot.js: View riot snippets in isolation with Hot Reloading.

MIT
Latest version published 4 years ago

Package Health Score

64 / 100
Full package analysis