mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 04:58:55 +08:00
623 B
623 B
order | title | ||||
---|---|---|---|---|---|
9 |
|
zh-CN
在 4.0 之后,危险成为一种按钮属性而不是按钮类型。
en-US
danger
is a property of button after antd 4.0.
import { Button } from 'antd';
import React from 'react';
const App: React.FC = () => (
<>
<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>
</>
);
export default App;