How to use the storybook-addon-designs/package.json.homepage function in storybook-addon-designs

To help you get started, we’ve selected a few storybook-addon-designs 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 pocka / storybook-addon-designs / packages / examples / .storybook / config.js View on Github external
import { addParameters, configure } from '@storybook/react'
import { create } from '@storybook/theming'

import logo from '@storybook-addon-designs/assets/logo-with-text.png'

import pkg from 'storybook-addon-designs/package.json'

addParameters({
  options: {
    theme: create({
      brandTitle: 'storybook-addon-designs',
      brandImage: logo,
      brandUrl: pkg.homepage
    })
  }
})

// automatically import all files ending in *.stories.js
const req = require.context('../stories', true, /.stories.js$/)
function loadStories() {
  req.keys().forEach(filename => req(filename))
}

configure(loadStories, module)

storybook-addon-designs

Storybook addon for embedding your design preview in addon panel

MIT
Latest version published 2 years ago

Package Health Score

65 / 100
Full package analysis