UNPKG

@fluentui/react-northstar

Version:
18 lines (17 loc) 704 B
import * as React from 'react'; export declare const getRenderedAttribute: (renderedComponent: any, propName: any, partSelector: any) => any; /** * Assert Component handles accessibility attributes correctly. * @param Component - A component that should conform. */ export declare const handlesAccessibility: (Component: React.ComponentType<any>, options?: { /** Props required to render Component without errors or warnings */ requiredProps?: { [key: string]: any; }; /** Default root role rendered when no override provided */ defaultRootRole?: string; /** Selector to scope the test to a part */ partSelector?: string; usesWrapperSlot?: boolean; }) => void;