UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

30 lines 1.18 kB
import { Primitive } from "@radix-ui/react-primitive"; import { ComponentPropsWithoutRef, ComponentRef } from "react"; type PrimitiveDivProps = ComponentPropsWithoutRef<typeof Primitive.div>; export declare namespace AttachmentPrimitiveRoot { type Element = ComponentRef<typeof Primitive.div>; /** * Props for the AttachmentPrimitive.Root component. * Accepts all standard div element props. */ type Props = PrimitiveDivProps; } /** * The root container component for an attachment. * * This component provides the foundational wrapper for attachment-related components * and content. It serves as the context provider for attachment state and actions. * * @example * ```tsx * <AttachmentPrimitive.Root> * <AttachmentPrimitive.Name /> * <AttachmentPrimitive.Remove /> * </AttachmentPrimitive.Root> * ``` */ export declare const AttachmentPrimitiveRoot: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLDivElement>>; export {}; //# sourceMappingURL=AttachmentRoot.d.ts.map