UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

16 lines (15 loc) 573 B
import { Provider } from 'react'; export interface RenderStrategyProps { /** * Whether to enable lazy mounting * @default false */ lazyMount?: boolean; /** * Whether to unmount on exit. * @default false */ unmountOnExit?: boolean; } export declare const RenderStrategyPropsProvider: Provider<RenderStrategyProps>, useRenderStrategyPropsContext: () => RenderStrategyProps; export declare const splitRenderStrategyProps: <T extends RenderStrategyProps>(props: T) => [RenderStrategyProps, Omit<T, "lazyMount" | "unmountOnExit">];