mirror of
https://gitee.com/antv/g6.git
synced 2024-12-03 04:08:32 +08:00
15 lines
490 B
TypeScript
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 />);
|