Sha256: 93d8703040d33b450db8178327bc5821e5422cbb8d04e6cdff0fe34f29f79517
Contents?: true
Size: 636 Bytes
Versions: 14
Compression:
Stored size: 636 Bytes
Contents
import { keys } from 'lodash'; import { storiesOf } from '@storybook/react'; import * as basicComponents from "./basic"; import * as formComponents from "./form"; import * as complexComponents from "./complex"; const addStories = function(stories) { let newStories = storiesOf(stories.title, module); keys(stories.components).forEach(function (key) { stories.components[key](newStories) }) }; addStories({ title: 'Form Components', components: formComponents }) addStories({ title: 'Basic Components', components: basicComponents }) addStories({ title: 'Complex Components', components: complexComponents })
Version data entries
14 entries across 14 versions & 1 rubygems