# @salmonui/chat/inline-assist API reference

> 30 exported symbols of @salmonui/chat/inline-assist: 2 functions, 18 interfaces, 9 types and 1 constant.

Canonical: https://salmonui.dev/docs/reference/chat/inline-assist

```ts
import { … } from '@salmonui/chat/inline-assist';
```

## Functions

### InlineAssist

Kind: function

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssist

```ts
function InlineAssist(props: InlineAssistProps): ReactElement | null;

namespace InlineAssist {
    export { InlineAssistDictation as Dictation };
}
```

### InlineAssistDictation

Kind: function

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistDictation

```ts
function InlineAssistDictation(props: InlineAssistDictationProps): ReactElement;
```

Dictation into the prompt: the Inputs `SpeechToTextButton`; the
transcript is appended to the prompt text present when listening started.
Render it as a child of `InlineAssist`.

## Interfaces

### InlineAssistAcceptEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistAcceptEvent

```ts
interface InlineAssistAcceptEvent {
    readonly text: string;
    readonly message: InlineAssistMessage;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `text` | `readonly text: string;` |  |  |
| `message` | `readonly message: InlineAssistMessage;` |  |  |

### InlineAssistApi

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistApi

```ts
interface InlineAssistApi {
    open(): void;
    close(): void;
    send(text?: string): void;
    stop(): void;
    showCommands(): void;
    hideCommands(): void;
    focus(): void;
    readonly element: HTMLElement | null;
}
```

Imperative API (`ref`).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `open` | `open(): void;` |  |  |
| `close` | `close(): void;` |  |  |
| `send` | `send(text?: string): void;` |  | Sends `text` (default: the current prompt) as a new request. |
| `stop` | `stop(): void;` |  | Aborts the running response. |
| `showCommands` | `showCommands(): void;` |  | Shows the command menu (unfiltered). |
| `hideCommands` | `hideCommands(): void;` |  |  |
| `focus` | `focus(): void;` |  | Focuses the prompt. |
| `element` | `readonly element: HTMLElement \| null;` |  | The dialog element while open. |

### InlineAssistBeforeSendEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistBeforeSendEvent

```ts
interface InlineAssistBeforeSendEvent extends InlineAssistSendEvent {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `preventDefault` | `preventDefault(): void;` |  | Sends nothing and keeps the prompt. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `request` | `request: InlineAssistRequest;` | inherited |  |

### InlineAssistCommand

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistCommand

```ts
interface InlineAssistCommand {
    readonly id: string;
    readonly label: string;
    readonly prompt?: string;
    readonly keywords?: readonly string[];
    readonly icon?: ReactNode;
    readonly disabled?: boolean;
}
```

A slash command of the command menu.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  | Stable id, reported in `onCommandSelect` and in the request. |
| `label` | `readonly label: string;` |  | Menu text; also what typing after `/` filters on. |
| `prompt` | `readonly prompt?: string;` | optional | Prompt sent when the command is chosen (default: `label`). |
| `keywords` | `readonly keywords?: readonly string[];` | optional | More words that match the filter. |
| `icon` | `readonly icon?: ReactNode;` | optional | Decorative leading icon. |
| `disabled` | `readonly disabled?: boolean;` | optional |  |

### InlineAssistCommandSelectEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistCommandSelectEvent

```ts
interface InlineAssistCommandSelectEvent {
    readonly command: InlineAssistCommand;
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `command` | `readonly command: InlineAssistCommand;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  | Skips the built-in send of the command prompt. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |

### InlineAssistComposerRenderProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistComposerRenderProps

```ts
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;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: string;` |  |  |
| `setValue` | `readonly setValue: (value: string) => void;` |  |  |
| `send` | `readonly send: (text?: string) => void;` |  |  |
| `stop` | `readonly stop: () => void;` |  |  |
| `responding` | `readonly responding: boolean;` |  | A response is pending or streaming. |
| `inputProps` | `readonly inputProps: InlineAssistInputProps;` |  |  |
| `defaultComposer` | `readonly defaultComposer: ReactNode;` |  | The built-in `<textarea>`. |

### InlineAssistContentOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistContentOptions

```ts
interface InlineAssistContentOptions {
    readonly streaming: boolean;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `streaming` | `readonly streaming: boolean;` |  | The text is still streaming. |

### InlineAssistCustomAction

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistCustomAction

```ts
interface InlineAssistCustomAction {
    readonly id: string;
    readonly label: string;
    readonly icon?: ReactNode;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `icon` | `readonly icon?: ReactNode;` | optional |  |

### InlineAssistDiscardEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistDiscardEvent

```ts
interface InlineAssistDiscardEvent {
    readonly message: InlineAssistMessage;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `message` | `readonly message: InlineAssistMessage;` |  |  |

### InlineAssistLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistLocaleText

```ts
interface InlineAssistLocaleText {
    readonly label?: string;
    readonly prompt?: string;
    readonly placeholder?: string;
    readonly send?: string;
    readonly stop?: string;
    readonly accept?: string;
    readonly discard?: string;
    readonly retry?: string;
    readonly commands?: string;
    readonly responseActions?: string;
    readonly pending?: string;
    readonly error?: string;
    readonly dictation?: string;
}
```

User-visible strings.

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label?: string;` | optional | Accessible name of the dialog. Default `"AI assistant"`. |
| `prompt` | `readonly prompt?: string;` | optional | Accessible name of the prompt. Default `"Prompt"`. |
| `placeholder` | `readonly placeholder?: string;` | optional | Default `"Ask AI, or type / for commands"`. |
| `send` | `readonly send?: string;` | optional |  |
| `stop` | `readonly stop?: string;` | optional |  |
| `accept` | `readonly accept?: string;` | optional |  |
| `discard` | `readonly discard?: string;` | optional |  |
| `retry` | `readonly retry?: string;` | optional |  |
| `commands` | `readonly commands?: string;` | optional | Accessible name of the command menu. Default `"Commands"`. |
| `responseActions` | `readonly responseActions?: string;` | optional | Accessible name of the response actions. Default `"Response actions"`. |
| `pending` | `readonly pending?: string;` | optional | Shown while the response is pending. Default `"Thinking…"`. |
| `error` | `readonly error?: string;` | optional | Shown when the adapter failed. |
| `dictation` | `readonly dictation?: string;` | optional | Accessible name of the dictation button. Default `"Dictate"`. |

### InlineAssistMessage

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistMessage

```ts
interface InlineAssistMessage {
    readonly id: string;
    readonly prompt: string;
    readonly command?: string;
    readonly response: string;
    readonly status: 'done' | 'aborted' | 'error';
}
```

One prompt and its response.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `prompt` | `readonly prompt: string;` |  |  |
| `command` | `readonly command?: string;` | optional | Id of the command that produced the prompt. |
| `response` | `readonly response: string;` |  |  |
| `status` | `readonly status: 'done' \| 'aborted' \| 'error';` |  | `'aborted'`: stopped by Stop or by closing; `'error'`: the adapter threw. |

### InlineAssistMessagesChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistMessagesChangeEvent

```ts
interface InlineAssistMessagesChangeEvent {
    readonly reason: 'response' | 'retry';
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `reason` | `readonly reason: 'response' \| 'retry';` |  | `'response'`: a response finished (or stopped); `'retry'`: Retry replaced the last response. |

### InlineAssistOpenChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistOpenChangeEvent

```ts
interface InlineAssistOpenChangeEvent {
    readonly reason: InlineAssistOpenChangeReason;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `reason` | `readonly reason: InlineAssistOpenChangeReason;` |  |  |

### InlineAssistPoint

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistPoint

```ts
interface InlineAssistPoint {
    readonly x: number;
    readonly y: number;
}
```

A point in viewport coordinates (`clientX` / `clientY`).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `x` | `readonly x: number;` |  |  |
| `y` | `readonly y: number;` |  |  |

### InlineAssistProps

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistProps

```ts
interface InlineAssistProps {
    readonly anchor?: InlineAssistAnchor | null | undefined;
    readonly open?: boolean | undefined;
    readonly defaultOpen?: boolean | undefined;
    readonly onOpenChange?: ((open: boolean, event: InlineAssistOpenChangeEvent) => void) | undefined;
    readonly mode?: InlineAssistMode | undefined;
    readonly value?: string | undefined;
    readonly defaultValue?: string | undefined;
    readonly onValueChange?: ((value: string) => void) | undefined;
    readonly messages?: readonly InlineAssistMessage[] | undefined;
    readonly defaultMessages?: readonly InlineAssistMessage[] | undefined;
    readonly onMessagesChange?: ((messages: readonly InlineAssistMessage[], event: InlineAssistMessagesChangeEvent) => void) | undefined;
    readonly placeholder?: string | undefined;
    readonly adapter?: InlineAssistAdapter | undefined;
    readonly selection?: string | undefined;
    readonly onBeforeSend?: ((event: InlineAssistBeforeSendEvent) => void) | undefined;
    readonly onSend?: ((event: InlineAssistSendEvent) => void) | undefined;
    readonly onError?: ((error: unknown) => void) | undefined;
    readonly commands?: readonly InlineAssistCommand[] | undefined;
    readonly onCommandSelect?: ((event: InlineAssistCommandSelectEvent) => void) | undefined;
    readonly responseActions?: readonly InlineAssistResponseAction[] | undefined;
    readonly onResponseActionClick?: ((event: InlineAssistResponseActionEvent) => void) | undefined;
    readonly onAccept?: ((event: InlineAssistAcceptEvent) => void) | undefined;
    readonly onDiscard?: ((event: InlineAssistDiscardEvent) => void) | undefined;
    readonly toolbar?: ReactNode;
    readonly toolbarPlacement?: 'inline' | 'bottom' | undefined;
    readonly renderComposer?: ((props: InlineAssistComposerRenderProps) => ReactNode) | undefined;
    readonly renderContent?: ((text: string, options: InlineAssistContentOptions) => ReactNode) | undefined;
    readonly returnFocus?: boolean | undefined;
    readonly localeText?: InlineAssistLocaleText | undefined;
    readonly children?: ReactNode;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly 'aria-label'?: string | undefined;
    readonly 'aria-labelledby'?: string | undefined;
    readonly ref?: Ref<InlineAssistApi> | undefined;
}
```

Members (35):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `anchor` | `readonly anchor?: InlineAssistAnchor \| null \| undefined;` | optional | Element, text range, viewport point or element ref the popover is placed next to. |
| `open` | `readonly open?: boolean \| undefined;` | optional |  |
| `defaultOpen` | `readonly defaultOpen?: boolean \| undefined;` | optional | Applied after hydration (the server renders the assist closed). |
| `onOpenChange` | `readonly onOpenChange?: ((open: boolean, event: InlineAssistOpenChangeEvent) => void) \| undefined;` | optional |  |
| `mode` | `readonly mode?: InlineAssistMode \| undefined;` | optional | `'popover'` (default): an anchored top-layer popover. `'inline'`: rendered in place, in the flow of the page. |
| `value` | `readonly value?: string \| undefined;` | optional | Prompt text (controlled). |
| `defaultValue` | `readonly defaultValue?: string \| undefined;` | optional |  |
| `onValueChange` | `readonly onValueChange?: ((value: string) => void) \| undefined;` | optional |  |
| `messages` | `readonly messages?: readonly InlineAssistMessage[] \| undefined;` | optional | Prompt and response history (controlled). |
| `defaultMessages` | `readonly defaultMessages?: readonly InlineAssistMessage[] \| undefined;` | optional |  |
| `onMessagesChange` | `readonly onMessagesChange?: ((messages: readonly InlineAssistMessage[], event: InlineAssistMessagesChangeEvent) => void) \| undefined;` | optional |  |
| `placeholder` | `readonly placeholder?: string \| undefined;` | optional |  |
| `adapter` | `readonly adapter?: InlineAssistAdapter \| undefined;` | optional | Produces the response. |
| `selection` | `readonly selection?: string \| undefined;` | optional | Selected text passed in the request (default: the text of a `Range` anchor). |
| `onBeforeSend` | `readonly onBeforeSend?: ((event: InlineAssistBeforeSendEvent) => void) \| undefined;` | optional |  |
| `onSend` | `readonly onSend?: ((event: InlineAssistSendEvent) => void) \| undefined;` | optional |  |
| `onError` | `readonly onError?: ((error: unknown) => void) \| undefined;` | optional | The adapter threw. |
| `commands` | `readonly commands?: readonly InlineAssistCommand[] \| undefined;` | optional | Slash commands, shown as a `Menu` when the prompt starts with `/` or through `api.showCommands()`. |
| `onCommandSelect` | `readonly onCommandSelect?: ((event: InlineAssistCommandSelectEvent) => void) \| undefined;` | optional |  |
| `responseActions` | `readonly responseActions?: readonly InlineAssistResponseAction[] \| undefined;` | optional | Actions under a finished response. Default `['accept', 'discard', 'retry']`. |
| `onResponseActionClick` | `readonly onResponseActionClick?: ((event: InlineAssistResponseActionEvent) => void) \| undefined;` | optional |  |
| `onAccept` | `readonly onAccept?: ((event: InlineAssistAcceptEvent) => void) \| undefined;` | optional | Accept: insert `text` into the editor. Closes the assist. |
| `onDiscard` | `readonly onDiscard?: ((event: InlineAssistDiscardEvent) => void) \| undefined;` | optional | Discard: the response is dropped. Closes the assist. |
| `toolbar` | `readonly toolbar?: ReactNode;` | optional | Extra controls next to the prompt (`'inline'`, default) or in a row below it (`'bottom'`). |
| `toolbarPlacement` | `readonly toolbarPlacement?: 'inline' \| 'bottom' \| undefined;` | optional |  |
| `renderComposer` | `readonly renderComposer?: ((props: InlineAssistComposerRenderProps) => ReactNode) \| undefined;` | optional | Replaces the prompt input. |
| `renderContent` | `readonly renderContent?: ((text: string, options: InlineAssistContentOptions) => ReactNode) \| undefined;` | optional | Renders response text (default: plain text with line breaks). Never receives HTML; bring a Markdown renderer here. |
| `returnFocus` | `readonly returnFocus?: boolean \| undefined;` | optional | Return focus to the element focused before opening (the editor) on close. Default true. |
| `localeText` | `readonly localeText?: InlineAssistLocaleText \| undefined;` | optional |  |
| `children` | `readonly children?: ReactNode;` | optional | Parts in the composer row, such as `InlineAssist.Dictation`. |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional |  |
| `aria-labelledby` | `readonly 'aria-labelledby'?: string \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<InlineAssistApi> \| undefined;` | optional |  |

### InlineAssistRequest

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistRequest

```ts
interface InlineAssistRequest {
    readonly prompt: string;
    readonly command: InlineAssistCommand | undefined;
    readonly selection: string;
    readonly messages: readonly InlineAssistMessage[];
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `prompt` | `readonly prompt: string;` |  | The prompt text (a command's `prompt` when a command was chosen). |
| `command` | `readonly command: InlineAssistCommand \| undefined;` |  | The chosen command, if any. |
| `selection` | `readonly selection: string;` |  | The selected text: `selection`, else the text of a `Range` anchor, else `''`. |
| `messages` | `readonly messages: readonly InlineAssistMessage[];` |  | Earlier prompts and responses (without the new one). |

### InlineAssistResponseActionEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistResponseActionEvent

```ts
interface InlineAssistResponseActionEvent {
    readonly action: string;
    readonly text: string;
    readonly message: InlineAssistMessage;
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: string;` |  | `'accept'`, `'discard'`, `'retry'` or a custom action's `id`. |
| `text` | `readonly text: string;` |  |  |
| `message` | `readonly message: InlineAssistMessage;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  | Cancels the built-in follow-up of a built-in action. |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |

### InlineAssistSendEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistSendEvent

```ts
interface InlineAssistSendEvent {
    readonly request: InlineAssistRequest;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `request` | `readonly request: InlineAssistRequest;` |  |  |

## Types

### InlineAssistAdapter

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistAdapter

```ts
type InlineAssistAdapter = (request: InlineAssistRequest, context: {
    readonly signal: AbortSignal;
}) => PromiseLike<string> | AsyncIterable<string | InlineAssistResponsePart>;
```

### InlineAssistAnchor

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistAnchor

```ts
type InlineAssistAnchor = Element | Range | InlineAssistPoint | RefObject<Element | null>;
```

What the popover is placed next to: an element, a text range (the selection), a point, or a ref to an element.

### InlineAssistBuiltInAction

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistBuiltInAction

```ts
type InlineAssistBuiltInAction = 'accept' | 'discard' | 'retry';
```

Built-in response actions.

### InlineAssistDictationProps

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistDictationProps

```ts
type InlineAssistDictationProps = SpeechToTextButtonProps;
```

`SpeechToTextButton` props; the transcript is written into the prompt.

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `children` | `children?: ReactNode;` | optional, inherited | Visible label; without children the button is icon-only, named by `localeText.label`. |
| `localeText` | `localeText?: SpeechToTextLocaleText;` | optional, inherited |  |
| `variant` | `variant?: ButtonVariant;` | optional, inherited | Visual weight. Default `'solid'` (or the group's). |
| `tone` | `tone?: ButtonTone;` | optional, inherited | Color role. Default `'neutral'`; `'primary'` for a `floating` button (or the group's). |
| `size` | `size?: ButtonSize;` | optional, inherited | Metric set. Default `'md'` (or the group's). |
| `iconStart` | `iconStart?: ReactNode;` | optional, inherited | Decorative icon before the label (inline-start; follows `dir`). |
| `iconEnd` | `iconEnd?: ReactNode;` | optional, inherited | Decorative icon after the label (inline-end; follows `dir`). |
| `floating` | `floating?: boolean \| ButtonFloatingPosition;` | optional, inherited | Floating action button: circular, elevated, positioned by CSS. |
| `floatingScope` | `floatingScope?: "parent" \| "viewport";` | optional, inherited | `'viewport'` (default, `position: fixed`) or `'parent'` (`position: absolute` in the nearest positioned ancestor). |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The `<button>` (or the element `render` returns). |
| `lang` | `lang?: string;` | optional, inherited | BCP 47 recognition language. Default: `document.documentElement.lang`, read when a session starts. |
| `interimResults` | `interimResults?: boolean;` | optional, inherited | Deliver interim (non-final) results. Default `true`. |
| `continuous` | `continuous?: boolean;` | optional, inherited | Keep listening after a pause until `stop()`. Default `true`. |
| `recognizer` | `recognizer?: (() => SpeechRecognizer);` | optional, inherited | Replaces the browser recognizer, e.g. a cloud service. Called once per session. |
| `onTranscriptChange` | `onTranscriptChange?: ((transcript: string, details: SpeechTranscriptDetails) => void);` | optional, inherited | The session transcript changed. |
| `onStart` | `onStart?: (() => void);` | optional, inherited | The recognizer started capturing audio. |
| `onStop` | `onStop?: (() => void);` | optional, inherited | The session ended (`stop()`, `abort()`, an error or the recognizer). |
| `onError` | `onError?: ((error: SpeechRecognitionError) => void);` | optional, inherited | A recognizer error, or `'unsupported'` when `start()` has no recognizer. |

### InlineAssistInputProps

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistInputProps

```ts
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`.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ref` | `ref: Ref<HTMLTextAreaElement>;` | inherited |  |
| `value` | `value: string;` | inherited |  |
| `onChange` | `onChange: (event: { readonly currentTarget: { readonly value: string; }; }) => void;` | inherited |  |
| `onKeyDown` | `onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;` | inherited |  |

### InlineAssistMode

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistMode

```ts
type InlineAssistMode = 'popover' | 'inline';
```

### InlineAssistOpenChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistOpenChangeReason

```ts
type InlineAssistOpenChangeReason = 'escape' | 'outside' | 'focus-outside' | 'accept' | 'discard' | 'api';
```

### InlineAssistResponseAction

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistResponseAction

```ts
type InlineAssistResponseAction = InlineAssistBuiltInAction | InlineAssistCustomAction;
```

### InlineAssistResponsePart

Kind: type

Page: https://salmonui.dev/docs/reference/chat/inline-assist/InlineAssistResponsePart

```ts
type InlineAssistResponsePart = StreamPart;
```

A typed response part; a plain string chunk is `{ type: 'text', delta }`. `reasoning` and `tool` parts are ignored by InlineAssist.

## Constants

### INLINE_ASSIST_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/chat/inline-assist/INLINE_ASSIST_DEFAULT_LOCALE_TEXT

```ts
const INLINE_ASSIST_DEFAULT_LOCALE_TEXT: Required<InlineAssistLocaleText>;
```
