UNPKG

@assistant-ui/react

Version:

TypeScript/React library for AI Chat

28 lines 1.1 kB
import { ActionButtonElement, ActionButtonProps } from "../../utils/createActionButton"; declare const useComposerCancel: () => (() => void) | null; export declare namespace ComposerPrimitiveCancel { type Element = ActionButtonElement; /** * Props for the ComposerPrimitive.Cancel component. * Inherits all button element props and action button functionality. */ type Props = ActionButtonProps<typeof useComposerCancel>; } /** * A button component that cancels the current message composition. * * This component automatically handles the cancel functionality and is disabled * when canceling is not available. * * @example * ```tsx * <ComposerPrimitive.Cancel> * Cancel * </ComposerPrimitive.Cancel> * ``` */ export declare const ComposerPrimitiveCancel: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & { asChild?: boolean; }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>; export {}; //# sourceMappingURL=ComposerCancel.d.ts.map