@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
46 lines (29 loc) • 614 B
Markdown
id: Checkbox
section: components
cssPrefix: pf-c-check
propComponents: ['Checkbox']
import './checkbox.css';
## Examples
### Controlled
```ts file='./CheckboxControlled.tsx'
```
### Uncontrolled
```ts file='./CheckboxUncontrolled.tsx'
```
### Disabled
```ts file='./CheckboxDisabled.tsx'
```
### Checkbox with description
```ts file='./CheckboxWithDescription.tsx'
```
### Checkbox with body
```ts file='./CheckboxWithBody.tsx'
```
### Checkbox with description and body
```ts file='./CheckboxWithDescriptionBody.tsx'
```
### Standalone input
```ts file='./CheckboxStandaloneInput.tsx'
```