g6/stories/Shape/shape.stories.tsx
2019-12-31 12:56:28 +08:00

16 lines
569 B
TypeScript

// import { Button } from '@storybook/react/demo';
import { storiesOf } from '@storybook/react';
import { Button } from '@storybook/react/demo'; // 这里引入你想展示的组件
import React from 'react';
import DefaultShape from './component/default-shape'
export default { title: 'Shape' };
storiesOf('Shape', module)
.add('with', () => ( // 一个 add 表示添加一个 story
<DefaultShape />
))
.add('with some emoji', () => ( // 这里是另一个 story
<span><span role="img" aria-label="so cool">😀 😎 👍 💯</span></span>
));