UNPKG

@momentum-ui/react-collaboration

Version:

Cisco Momentum UI Framework for React Collaboration Applications

14 lines (13 loc) 514 B
import { AriaAttributes } from 'react'; import { RequireOneOf } from './types'; export type AriaLabelRequired = RequireOneOf<AriaAttributes, ['aria-label', 'aria-labelledby']>; /** * Check if `aria-label` or `aria-labelledby` are defined and are truthy * * @param componentName The name of the component * @param props The object of props passed to the component */ export declare function useCheckAriaLabel(componentName: string, props: { 'aria-label'?: string; 'aria-labelledby'?: string; }): void;