AiChatInput
AIChat input with attachment support, model selector, and streaming stop button.
[EXAMPLES]
Basic
[PROPS]
| PROP | TYPE | DEFAULT | DESCRIPTION |
|---|---|---|---|
| onSend | (message: string, attachments?: File[]) => void | — | Send callback |
| onStop | () => void | — | Stop streaming callback |
| isLoading | boolean | false | Show stop button |
| models | { id: string; name: string }[] | — | Available AI models |
| selectedModelId | string | — | Current model ID |
| onModelChange | (modelId: string) => void | — | Model change callback |
[ACCESSIBILITY]
KEYBOARD SHORTCUTS
| KEY | ACTION |
|---|---|
| Enter | Send message |
| Shift+Enter | New line |
ARIA
- >Textarea with aria-label
- >Send button with aria-label