How to use the storybook/utils/utils.storiesOf function in storybook

To help you get started, we’ve selected a few 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 mediamonks / muban / build-tools / generator-template / component / {name_sc} / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('{{name_sc}}', require('./{{name_sc}}.hbs')).add(
  'default',
  'No description yet...',
  `
      \{{> {{name_sc}} @root}}
    `,
  {},
);
github mediamonks / muban / src / app / component / block / header / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('Header', require('./header.hbs')).add(
  'default',
  'The header that we show on each page of the website, contains the navigation.',
  `
			{{> header }}
		`,
);
github mediamonks / muban / src / app / component / block / footer / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('Footer', require('./footer.hbs')).add(
  'default',
  'The footer that we show on each page of the website, contains the copyright.',
  `
			{{> footer }}
		`,
);
github mediamonks / muban / build-tools / generator-template / block / {name_sc} / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('{{name_sc}}', require('./{{name_sc}}.hbs')).add(
  'default',
  'No description yet...',
  `
      \{{> block/{{name_sc}} @root}}
    `,
  require('./data/default'),
);
github mediamonks / muban / src / app / component / block / paragraph / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('Paragraph', require('./paragraph'))
  .add(
    'default',
    'A Paragraph block with a "read more" section you can show by clicking a button.',
    `
      {{> paragraph @root }}
    `,
    require('./data/data'),
  )
  .add(
    'no more content',
    'Without more content, hides the button',
    `
      <div style="max-width: 400px;">
        {{&gt; paragraph @root }}
      </div>
    `,
github mediamonks / muban / build-tools / generator-template / smart-component / {name_sc} / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('{{name_sc}}', require('./{{name_sc}}.hbs')).add(
  'default',
  'No description yet...',
  `
      \{{&gt; {{name_sc}} @root}}
    `,
  {},
);
github mediamonks / muban / src / app / component / block / two-col / preset.js View on Github external
/* eslint-disable max-len */
import { storiesOf } from 'storybook/utils/utils';

storiesOf('Two Col', require('./two-col'))
  .add(
    'default',
    'A block that has two columns of text, each with its own title.',
    `
      {{&gt; two-col @root }}
    `,
    require('./data/data'),
  )
  .add(
    'small',
    'A smaller wrapper around the two colomns.',
    `
      <div style="max-width: 600px">
        {{&gt; two-col @root }}
      </div>
    `,