UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

40 lines • 2.08 kB
import { Primitive } from "../../../utils/Primitive.js"; import { type ComponentRef, type ComponentPropsWithoutRef, type ReactNode } from "react"; import type { TriggerItem } from "@assistant-ui/core"; export declare namespace ComposerPrimitiveTriggerPopoverItems { type Element = ComponentRef<typeof Primitive.div>; type Props = Omit<ComponentPropsWithoutRef<typeof Primitive.div>, "children"> & { children: (items: readonly TriggerItem[]) => ReactNode; }; } /** * Renders the list of items within a category or search results via a render function. * Only renders when a category is active or search mode is on. */ export declare const ComposerPrimitiveTriggerPopoverItems: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & { asChild?: boolean | undefined; }, "ref"> & { render?: import("react").ReactElement | undefined; } & import("react").RefAttributes<HTMLDivElement>, "ref">, "children"> & { children: (items: readonly TriggerItem[]) => ReactNode; } & import("react").RefAttributes<HTMLDivElement>>; export declare namespace ComposerPrimitiveTriggerPopoverItem { type Element = ComponentRef<typeof Primitive.button>; type Props = ComponentPropsWithoutRef<typeof Primitive.button> & { item: TriggerItem; index?: number | undefined; }; } /** * A button that selects a trigger item. * Automatically receives `data-highlighted` when keyboard-navigated. */ export declare const ComposerPrimitiveTriggerPopoverItem: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & { asChild?: boolean | undefined; }, "ref"> & { render?: import("react").ReactElement | undefined; } & import("react").RefAttributes<HTMLButtonElement>, "ref"> & { item: TriggerItem; index?: number | undefined; } & import("react").RefAttributes<HTMLButtonElement>>; //# sourceMappingURL=TriggerPopoverItems.d.ts.map