API reference: @salmonui/chat/inline-assist
InlineAssistInputPropstype
import type { InlineAssistInputProps } from '@salmonui/chat/inline-assist';type InlineAssistInputProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'onKeyDown' | 'value'> & {
readonly ref: Ref<HTMLTextAreaElement>;
readonly value: string;
readonly onChange: (event: {
readonly currentTarget: {
readonly value: string;
};
}) => void;
readonly onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
};
Props of the default prompt <textarea>; spread them on a custom input in renderComposer.
| Name | Signature | Description |
|---|---|---|
refinherited | ref: Ref<HTMLTextAreaElement>; | |
valueinherited | value: string; | |
onChangeinherited | onChange: (event: { readonly currentTarget: { readonly value: string; }; }) => void; | |
onKeyDowninherited | onKeyDown: (event: KeyboardEvent<HTMLElement>) => void; |