2017-05-15 00:08:46 +02:00

16 lines
304 B
JavaScript

import React from 'react';
import { configure, setAddon, addDecorator } from '@storybook/react';
import InfoAddon from '../src/';
addDecorator((story) => (
<div style={{padding: 20}}>
{story()}
</div>
));
setAddon(InfoAddon);
configure(function () {
require('../example/story');
}, module);