@assistant-ui/react
Version:
React components for AI chat.
25 lines • 1.19 kB
TypeScript
import { type TextareaAutosizeProps } from "react-textarea-autosize";
/**
* @deprecated Use `ComposerPrimitive.Input.Props` instead. This will be removed in 0.6.
*/
export type ComposerPrimitiveInputProps = ComposerPrimitiveInput.Props;
export declare namespace ComposerPrimitiveInput {
type Element = HTMLTextAreaElement;
type Props = TextareaAutosizeProps & {
asChild?: boolean | undefined;
submitOnEnter?: boolean | undefined;
cancelOnEscape?: boolean | undefined;
unstable_focusOnRunStart?: boolean | undefined;
unstable_focusOnScrollToBottom?: boolean | undefined;
unstable_focusOnThreadSwitched?: boolean | undefined;
};
}
export declare const ComposerPrimitiveInput: import("react").ForwardRefExoticComponent<TextareaAutosizeProps & {
asChild?: boolean | undefined;
submitOnEnter?: boolean | undefined;
cancelOnEscape?: boolean | undefined;
unstable_focusOnRunStart?: boolean | undefined;
unstable_focusOnScrollToBottom?: boolean | undefined;
unstable_focusOnThreadSwitched?: boolean | undefined;
} & import("react").RefAttributes<HTMLTextAreaElement>>;
//# sourceMappingURL=ComposerInput.d.ts.map