UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

29 lines 1.17 kB
import { Primitive } from "@radix-ui/react-primitive"; import { type ComponentRef, ComponentPropsWithoutRef } from "react"; export declare namespace ThreadPrimitiveRoot { type Element = ComponentRef<typeof Primitive.div>; /** * Props for the ThreadPrimitive.Root component. * Accepts all standard div element props. */ type Props = ComponentPropsWithoutRef<typeof Primitive.div>; } /** * The root container component for a thread. * * This component serves as the foundational wrapper for all thread-related components. * It provides the basic structure and context needed for thread functionality. * * @example * ```tsx * <ThreadPrimitive.Root> * <ThreadPrimitive.Viewport> * <ThreadPrimitive.Messages components={{ Message: MyMessage }} /> * </ThreadPrimitive.Viewport> * </ThreadPrimitive.Root> * ``` */ export declare const ThreadPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=ThreadRoot.d.ts.map