f-react-use-modal
Version:
f-react-use-modal
13 lines • 484 B
TypeScript
import * as React from 'react';
export type ModalProviderProps = {
children?: React.ReactNode;
unmountAfter?: number;
};
/**
* Provider for Modals stacks. The subtree of this component can use the `useDialogs` hook to
* access the modals API. The modals are rendered in the order they are requested.
*
*/
declare const ModalsProvider: (props: ModalProviderProps) => import("react/jsx-runtime").JSX.Element;
export { ModalsProvider };
//# sourceMappingURL=provider.d.ts.map