ant-design/components/button/demo/basic.md
偏右 f850993fda More types of Button (#4679)
* Add Button[ghost] property, close #4625

* Add danger button

close #1308

* update API doc about ghost and danger property
2017-01-23 22:24:36 +08:00

644 B

order title
0
zh-CN en-US
按钮类型 Type

zh-CN

按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。

dangerantd@2.7 后支持。

en-US

There are primary button, default button, dashed button and danger button in antd.

danger is supported after antd@2.7.

import { Button } from 'antd';

ReactDOM.render(
  <div>
    <Button type="primary">Primary</Button>
    <Button>Default</Button>
    <Button type="dashed">Dashed</Button>
    <Button type="danger">Danger</Button>
  </div>
, mountNode);