@wordpress/components
Version:
UI components for WordPress.
19 lines (14 loc) • 376 B
Markdown
`ControlLabel` is a form component that works with `FormGroup` to provide a label for form elements (e.g. `Switch` or `TextInput`).
## Usage
```jsx
import { ControlLabel, FormGroup, TextInput } from '@wordpress/components/ui';
function Example() {
return (
<FormGroup>
<ControlLabel>First Name</ControlLabel>
<TextInput />
</FormGroup>
);
}
```