UNPKG

@lobehub/ui

Version:

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

15 lines (14 loc) 645 B
"use client"; import { createContext, use } from "react"; //#region src/base-ui/Popover/groupContext.ts const PopoverGroupHandleContext = createContext(null); const PopoverGroupPropsContext = createContext(null); /** * 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`. */ const usePopoverGroupHandle = () => use(PopoverGroupHandleContext); //#endregion export { PopoverGroupHandleContext, PopoverGroupPropsContext, usePopoverGroupHandle }; //# sourceMappingURL=groupContext.mjs.map