@wordpress/components
Version:
UI components for WordPress.
23 lines • 737 B
TypeScript
export default ConnectedControlLabel;
/**
* `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 ConnectedControlLabel: import("../context").WordPressComponent<"label", import("../../text/types").Props & {
isBlock?: boolean | undefined;
size?: "medium" | "large" | "small" | undefined;
} & import("react").RefAttributes<any>, false>;
//# sourceMappingURL=component.d.ts.map