UNPKG

@automattic/agenttic-ui

Version:

UI components for the Agenttic framework

34 lines 1.32 kB
import React from 'react'; interface ActionButton { id: string; icon: React.ReactNode; onClick: () => void; variant?: 'primary' | 'ghost' | 'outline' | 'link' | 'icon'; disabled?: boolean; 'aria-label': string; className?: string; } interface ChatInputProps { value: string; onChange: (value: string) => void; onSubmit: () => void; onKeyDown: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void; textareaRef: React.RefObject<HTMLTextAreaElement>; placeholder?: string | string[]; isProcessing: boolean; onBlur?: () => void; fromCompact?: boolean; onExpand?: () => void; showExpandButton?: boolean; focusOnMount?: boolean; customActions?: ActionButton[]; actionOrder?: 'before-submit' | 'after-submit'; onStop?: () => void; disabled?: boolean; className?: string; onMouseEnter?: () => void; onMouseLeave?: () => void; } export declare function ChatInput({ value, onChange, onSubmit, onKeyDown, textareaRef, placeholder, isProcessing, onBlur, fromCompact, onExpand, showExpandButton, focusOnMount, customActions, actionOrder, onStop, disabled, className, onMouseEnter, onMouseLeave, }: ChatInputProps): import("react/jsx-runtime").JSX.Element; export type { ActionButton }; //# sourceMappingURL=ChatInput.d.ts.map