UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

39 lines (31 loc) 677 B
--- category: 2 title: 三种触发方式 title_en: Three ways to trigger --- zh-CN 鼠标移入、聚集、点击。 en-US Mouse to click, focus and move in. ````jsx import { Popover, Button } from 'parkball'; const content = ( <div> <p>Content</p> <p>Content</p> </div> ); ReactDOM.render( <div> <Popover content={content} title="Title" trigger="hover"> <Button>Hover me</Button> </Popover> <Popover content={content} title="Title" trigger="focus"> <Button>Focus me</Button> </Popover> <Popover content={content} title="Title" trigger="click"> <Button>Click me</Button> </Popover> </div>, mountNode); ````