@fluentui/react-northstar
Version:
A themable React component library.
18 lines (17 loc) • 704 B
TypeScript
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;