UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

32 lines 1.29 kB
import { Primitive } from "@radix-ui/react-primitive"; import { type ComponentRef, ComponentPropsWithoutRef } from "react"; export declare namespace MessagePrimitiveRoot { type Element = ComponentRef<typeof Primitive.div>; /** * Props for the MessagePrimitive.Root component. * Accepts all standard div element props. */ type Props = ComponentPropsWithoutRef<typeof Primitive.div>; } /** * The root container component for a message. * * This component provides the foundational wrapper for message content and handles * hover state management for the message. It automatically tracks when the user * is hovering over the message, which can be used by child components like action bars. * * @example * ```tsx * <MessagePrimitive.Root> * <MessagePrimitive.Content /> * <ActionBarPrimitive.Root> * <ActionBarPrimitive.Copy /> * <ActionBarPrimitive.Edit /> * </ActionBarPrimitive.Root> * </MessagePrimitive.Root> * ``` */ export declare const MessagePrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=MessageRoot.d.ts.map