UNPKG

@wordpress/components

Version:
20 lines 574 B
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