UNPKG

@uva-glass/component-library

Version:

React components UvA

14 lines (13 loc) 798 B
import { LabelHTMLAttributes } from 'react'; export interface LabelProps extends Omit<LabelHTMLAttributes<HTMLLabelElement>, 'className' | 'style'> { /** The id of the element for which the label is intended. */ htmlFor: string; /** `true` if the font-weight needs to be unset; otherwise, `false`. The default is `false`. */ noFontWeight?: boolean; /** `true` to show an asterisk to indicate an item is required; otherwise, `false`. */ required?: boolean; /** `true` to align text right; otherwise, `false`. */ alignRight?: boolean; } /** Represents a component that renders a label for an input element. */ export declare const Label: ({ children, htmlFor, noFontWeight, required, alignRight, ...restProps }: LabelProps) => import("react/jsx-runtime").JSX.Element;