dh-c
Version:
The front-end development engineers jimberton gulp react component
25 lines (20 loc) • 448 B
JavaScript
import React from 'react';
import { Button, Popover } from '../../src';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const options = {
inline: true,
}
const content = (
<div>
<p>内容1</p>
<p>内容2</p>
</div>
);
storiesOf('气泡卡片', module)
.addWithInfo(
'默认卡片',
() => (
<Popover content={content} title="Title" trigger="click">
<a>Hover me</a>
</Popover>
), options)