UNPKG

@flexis/ui

Version:

Styleless React Components

19 lines 621 B
interface ILabelProps { role?: string; labelledBy?: string; label?: string; } interface IAriaLabelProps { role?: string; ['aria-labelledby']?: string; ['aria-label']?: string; } /** * Get arial-label props. * @param labelProps - Props with labels. * @param selfProps - Props to check aria-attributes. * @return Aria-label props. */ export declare function getAriaLabelProps({ role, labelledBy, label }: ILabelProps, { role: selfRole, 'aria-labelledby': selfLabelledBy, 'aria-label': selfLabel }?: IAriaLabelProps): IAriaLabelProps; export {}; //# sourceMappingURL=getAriaLabelProps.d.ts.map