g6/stories/label/interaction.stories.tsx
2020-03-26 00:17:21 +08:00

15 lines
490 B
TypeScript

// import { Button } from '@storybook/react/demo';
import { storiesOf } from '@storybook/react';
import React from 'react';
import NodeLabelRotate from './component/node-label-rotate';
import EdgeLabelBackground from './component/edge-label-background';
export default { title: 'Label' };
storiesOf('Label', module)
.add('node label rotate', () => (
// 一个 add 表示添加一个 story
<NodeLabelRotate />
))
.add('edge label background', () => <EdgeLabelBackground />);