reakit
Version:
Toolkit for building accessible rich web apps with React
18 lines (17 loc) • 1.78 kB
TypeScript
import * as React from "react";
import { RoleOptions, RoleHTMLProps } from "../Role/Role";
import { CompositeStateReturn } from "./CompositeState";
export declare type unstable_CompositeItemWidgetOptions = RoleOptions & Pick<Partial<CompositeStateReturn>, "wrap"> & Pick<CompositeStateReturn, "unstable_hasActiveWidget" | "unstable_setHasActiveWidget" | "currentId">;
export declare type unstable_CompositeItemWidgetHTMLProps = RoleHTMLProps;
export declare type unstable_CompositeItemWidgetProps = unstable_CompositeItemWidgetOptions & unstable_CompositeItemWidgetHTMLProps;
export declare const unstable_useCompositeItemWidget: {
(options?: unstable_CompositeItemWidgetOptions | undefined, htmlProps?: RoleHTMLProps | undefined, unstable_ignoreUseOptions?: boolean | undefined): RoleHTMLProps;
unstable_propsAreEqual: (prev: RoleOptions & Pick<Partial<CompositeStateReturn>, "wrap"> & Pick<CompositeStateReturn, "currentId" | "unstable_hasActiveWidget" | "unstable_setHasActiveWidget"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
}, next: RoleOptions & Pick<Partial<CompositeStateReturn>, "wrap"> & Pick<CompositeStateReturn, "currentId" | "unstable_hasActiveWidget" | "unstable_setHasActiveWidget"> & React.HTMLAttributes<any> & React.RefAttributes<any> & {
wrapElement?: ((element: React.ReactNode) => React.ReactNode) | undefined;
}) => boolean;
__keys: readonly any[];
__useOptions: (options: unstable_CompositeItemWidgetOptions, htmlProps: RoleHTMLProps) => unstable_CompositeItemWidgetOptions;
};
export declare const unstable_CompositeItemWidget: import("reakit-system/ts/createComponent").Component<"div", unstable_CompositeItemWidgetOptions>;