ant-design/components/checkbox/demo/disabled.md

27 lines
308 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 1
2016-08-18 11:22:55 +08:00
title:
2019-05-07 14:57:32 +08:00
zh-CN: 不可用
en-US: Disabled
2016-03-31 09:40:55 +08:00
---
2015-07-15 15:19:24 +08:00
2016-08-18 11:22:55 +08:00
## zh-CN
2015-07-16 14:34:42 +08:00
checkbox 不可用。
2015-07-15 15:19:24 +08:00
2016-08-18 11:22:55 +08:00
## en-US
Disabled checkbox.
2019-05-07 14:57:32 +08:00
```jsx
import { Checkbox } from 'antd';
2015-07-15 15:19:24 +08:00
export default () => (
<>
<Checkbox defaultChecked={false} disabled />
<br />
<Checkbox defaultChecked disabled />
</>
2018-11-28 15:00:03 +08:00
);
2019-05-07 14:57:32 +08:00
```