@assistant-ui/react
Version:
Open-source TypeScript/React library for building production-grade AI chat experiences
8 lines (6 loc) • 313 B
text/typescript
import { Popover as PopoverPrimitive } from "radix-ui";
import type { Context } from "radix-ui/internal";
export const usePopoverScope: ReturnType<
typeof PopoverPrimitive.createPopoverScope
> = PopoverPrimitive.createPopoverScope();
export type ScopedProps<P> = P & { __scopeAssistantModal?: Context.Scope };