UNPKG

@wordpress/components

Version:
19 lines (14 loc) 376 B
# ControlLabel `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> ); } ```