ant-design/components/button/demo/danger.md
Teng YANG 9f8eb99807
fix: #24614 text button style inconsistent in danger (#24622)
* fix: update button style when type="text" of danger

* update wording in danger button demo

* format code
2020-06-01 13:33:29 +08:00

576 B

order title
9
zh-CN en-US
危险按钮 Danger Buttons

zh-CN

在 4.0 之后,危险成为一种按钮属性而不是按钮类型。

en-US

danger is a property of button after antd 4.0.

import { Button } from 'antd';

ReactDOM.render(
  <>
    <Button type="primary" danger>
      Primary
    </Button>
    <Button danger>Default</Button>
    <Button type="dashed" danger>
      Dashed
    </Button>
    <Button type="text" danger>
      Text
    </Button>
    <Button type="link" danger>
      Link
    </Button>
  </>,
  mountNode,
);