UNPKG

@octopusdeploy/design-system-components

Version:
43 lines (42 loc) 1.26 kB
import type * as React from "react"; import type { PopoverBasicHelpProps } from "../../Popover"; export interface InputLabelProps { /** * The ID of the input label */ id?: string; /** * The label text to display */ label: string; /** * The ID of the input element this label is for */ htmlFor: string; /** * Whether the label should appear disabled */ isDisabled?: boolean; /** * Whether the label should have a default marker */ hasDefaultMarker?: boolean; /** * Whether the label should have a required marker */ hasRequiredMarker?: boolean; /** * Whether the label should have an optional marker */ hasOptionalMarker?: boolean; /** * PopoverBasicHelp component to display additional help information */ popover?: React.ReactElement<PopoverBasicHelpProps>; /** * Applys special styling for radio and checkbox implementations. */ isRadioOrCheckbox?: boolean; } export declare function InputLabel({ id, label, htmlFor, isDisabled, popover, hasDefaultMarker, hasOptionalMarker, hasRequiredMarker, isRadioOrCheckbox }: InputLabelProps): import("react/jsx-runtime").JSX.Element; export default InputLabel;