mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 04:11:06 +08:00
16 lines
304 B
JavaScript
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);
|