Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.addDecorator(withDesign)
.add('Embed multiple designs', () => <button>Button</button>, {
design: config([
{
type: 'figma',
url:
'https://www.figma.com/file/Klm6pxIZSaJFiOMX5FpTul9F/storybook-addon-designs-sample'
},
{
type: 'pdf',
url: samplePdf
}
])
})
.add('Set tab names', () => <button>Button</button>, {
design: config([
{
name: 'Foo',
type: 'figma',
url:
'https://www.figma.com/file/Klm6pxIZSaJFiOMX5FpTul9F/storybook-addon-designs-sample'
},
{
name: 'Bar',
type: 'pdf',
url: samplePdf
}
])
})
storiesOf('Tests|Placeholder', module)
.addDecorator(withDesign)