mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
30 lines
363 B
Markdown
30 lines
363 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 不可用
|
|
en-US: Disabled
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
checkbox 不可用。
|
|
|
|
## en-US
|
|
|
|
Disabled checkbox.
|
|
|
|
```tsx
|
|
import { Checkbox } from 'antd';
|
|
import React from 'react';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Checkbox defaultChecked={false} disabled />
|
|
<br />
|
|
<Checkbox defaultChecked disabled />
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
```
|