@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
19 lines (18 loc) • 726 B
TypeScript
export interface LabelProps {
/** The text rendered as the label */
children?: string;
/** The ID of the corresponding input field */
inputId: string;
/** Render the visually hidden style for label */
hidden?: boolean;
/** Render the disabled style for label */
disabled?: boolean;
/** The text describing the conditional status of the field */
conditionText?: string;
/** Additional classNames for label */
className?: string;
/** Use legend tag instead of label. Use legend to caption a <fieldset> */
useLegend?: boolean;
}
declare const Label: ({ children, inputId, hidden, disabled, conditionText, className, useLegend }: LabelProps) => any;
export default Label;