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

30 lines
363 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.
```tsx
import { Checkbox } from 'antd';
2022-05-21 22:14:15 +08:00
import React from 'react';
2015-07-15 15:19:24 +08:00
const App: React.FC = () => (
<>
<Checkbox defaultChecked={false} disabled />
<br />
<Checkbox defaultChecked disabled />
</>
2018-11-28 15:00:03 +08:00
);
export default App;
2019-05-07 14:57:32 +08:00
```