import * as React from 'react'; import type { BackyardBaseProps } from '../utils/typings/BackyardProps'; import type { BDSForwardRef } from '../utils/typings/BDSComponentProps'; /** * Backyard React Form Control Label * * } * label="Controlled Radio Label" * /> * * Provides Label to inputs such as * * * * that allows control over the input for interactions * like hovering, clicking, and focusing. * * Can be used in conjunction with to provide * helper text in addition to a controlled label: * * ``` * * } * label="Controlled Label" * /> * Helper Text for Checkbox * * ``` */ declare const FormControlLabel: BDSForwardRef; declare type FormControlLabelRef = HTMLLabelElement; interface FormControlLabelProps extends BackyardBaseProps { /** * Text for to use */ label?: string; /** * DOM Class Name */ className?: string; /** * Whether or not is disabled * * This will also disabled any input in the `control` prop * There is no need to disable both */ disabled?: boolean; /** * Required * Input Node for to control and add label to */ control: React.ReactElement; } export { FormControlLabel }; export type { FormControlLabelProps, FormControlLabelRef }; export default FormControlLabel;