@hakuna-matata-ui/utils
Version:
Common utilties and types for Chakra UI
17 lines • 563 B
TypeScript
export 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.
*/
export declare function determineLazyBehavior(options: DetermineLazyBehaviorOptions): boolean;
export {};
//# sourceMappingURL=lazy.d.ts.map