UNPKG

@payfit/unity-components

Version:

18 lines (17 loc) 589 B
import { LabelProps as AriaLabelProps } from 'react-aria-components/Label'; export interface LabelProps extends AriaLabelProps { /** * Whether the field is required. */ isRequired?: boolean; /** * The variant of the required label. */ requiredVariant?: 'required' | 'optional'; } /** * FormLabel is a component that displays a label for a form field. * It is used to provide context for the form field. */ declare const Label: import('react').ForwardRefExoticComponent<LabelProps & import('react').RefAttributes<HTMLLabelElement>>; export { Label };