@wordpress/components
Version:
UI components for WordPress.
20 lines • 574 B
TypeScript
export default ControlLabel;
/**
* `ControlLabel` is a form component that works with `FormGroup` to provide a
* label for form elements (e.g. `Switch` or `TextInput`).
*
* ```jsx
* import { ControlLabel, FormGroup, TextInput } from '@wordpress/components/ui';
*
* function Example() {
* return (
* <FormGroup>
* <ControlLabel>First Name</ControlLabel>
* <TextInput />
* </FormGroup>
* );
* }
* ```
*/
declare const ControlLabel: import("../context").PolymorphicComponent<"label", import("./types").Props>;
//# sourceMappingURL=component.d.ts.map