View as Markdown

API reference: @salmonui/chat/inline-assist

InlineAssistComposerRenderPropsinterface

import type { InlineAssistComposerRenderProps } from '@salmonui/chat/inline-assist';
interface InlineAssistComposerRenderProps {
    readonly value: string;
    readonly setValue: (value: string) => void;
    readonly send: (text?: string) => void;
    readonly stop: () => void;
    readonly responding: boolean;
    readonly inputProps: InlineAssistInputProps;
    readonly defaultComposer: ReactNode;
}
InlineAssistComposerRenderProps members (7)
NameSignatureDescription
valuereadonly value: string;
setValuereadonly setValue: (value: string) => void;
sendreadonly send: (text?: string) => void;
stopreadonly stop: () => void;
respondingreadonly responding: boolean;

A response is pending or streaming.

inputPropsreadonly inputProps: InlineAssistInputProps;
defaultComposerreadonly defaultComposer: ReactNode;

The built-in <textarea>.