UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

31 lines 1.38 kB
import { PopoverProps } from "./type.mjs"; import { Popover } from "@base-ui/react/popover"; //#region src/base-ui/Popover/groupContext.d.ts type PopoverGroupItem = Omit<PopoverProps, 'children' | 'open' | 'defaultOpen' | 'ref'>; type PopoverGroupSharedProps = Omit<PopoverProps, 'children' | 'content' | 'defaultOpen' | 'open' | 'ref'> & { /** * @description Whether to enable content layout animation when switching triggers * @default false */ contentLayoutAnimation?: boolean; /** * Disable the "destroy on invalid trigger (display:none / disconnected)" guard for performance. * @default false */ disableDestroyOnInvalidTrigger?: boolean; /** * Disable the "hide when positioner falls back to (0,0)" visual guard for performance. * @default false */ disableZeroOriginGuard?: boolean; }; type PopoverGroupHandle = ReturnType<typeof Popover.createHandle<PopoverGroupItem>>; /** * Handle of the enclosing `PopoverGroup`, or `null` outside one. Lets a trigger's * neighbourhood drive the shared popup imperatively — `open(triggerId)` needs the * trigger to carry a matching `triggerProps.id`. */ declare const usePopoverGroupHandle: () => Popover.Handle<PopoverGroupItem> | null; //#endregion export { PopoverGroupHandle, PopoverGroupItem, PopoverGroupSharedProps, usePopoverGroupHandle }; //# sourceMappingURL=groupContext.d.mts.map