Files
wdi-dashboard/node_modules/@chakra-ui/utils/dist/lazy.d.ts
2024-08-16 15:06:52 +05:30

18 lines
553 B
TypeScript

declare type LazyBehavior = "unmount" | "keepMounted";
interface DetermineLazyBehaviorOptions {
hasBeenSelected?: boolean;
isLazy?: boolean;
isSelected?: boolean;
lazyBehavior?: LazyBehavior;
}
/**
* Determines whether the children of a disclosure widget
* should be rendered or not, depending on the lazy behavior.
*
* Used in accordion, tabs, popover, menu and other disclosure
* widgets.
*/
declare function determineLazyBehavior(options: DetermineLazyBehaviorOptions): boolean;
export { LazyBehavior, determineLazyBehavior };