mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
d7f9270a6f
add `ghost` property to ghost buttons
762 B
762 B
order | title | ||||
---|---|---|---|---|---|
3 |
|
zh-CN
添加 disabled
属性即可让按钮处于不可用状态,同时按钮样式也会改变。
en-US
To mark a button as disabled, add the disabled
property to the Button
.
import { Button } from 'antd';
ReactDOM.render(
<div>
<Button type="primary">Primary</Button>
<Button type="primary" disabled>Primary(disabled)</Button>
<br />
<Button>Default</Button>
<Button disabled>Default(disabled)</Button>
<br />
<Button ghost>Ghost</Button>
<Button ghost disabled>Ghost(disabled)</Button>
<br />
<Button type="dashed">Dashed</Button>
<Button type="dashed" disabled>Dashed(disabled)</Button>
</div>,
mountNode
);