@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
22 lines (21 loc) • 699 B
TypeScript
import type { PropsFor } from "../../types.js";
export type LabelProps = PropsFor<"label", {
/** Display "(required)" after label text */
required?: boolean;
/** Display "(optional)" after label text */
optional?: boolean;
/** Display faLock icon after label text */
disabled?: boolean;
/** Display faLock icon after label text */
readOnly?: boolean;
}>;
/**
* Label element to be attached to a form input
*
* @see https://bifrost.intility.com/react/label
*
* @example
* <Label htmlFor="inputId">Name</Label>
*/
declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
export default Label;