g6/stories/Shape/shape.stories.tsx
2020-03-09 18:18:29 +08:00

22 lines
554 B
TypeScript

// import { Button } from '@storybook/react/demo';
import { storiesOf } from '@storybook/react';
import React from 'react';
import DefaultShape from './component/default-shape';
import Image from './component/image';
import CustomNode from './component/custom-node';
export default { title: 'Shape' };
storiesOf('Shape', module)
.add('default node', () => (
// 一个 add 表示添加一个 story
<DefaultShape />
))
.add('image node', () => (
// 一个 add 表示添加一个 story
<Image />
))
.add('custom node', () => (
<CustomNode />
))