Forms
PromptBar
A rich chat input bar with auto-growing textarea, source picker (@), slash-command palette (/), model selector, dictation toggle, and submit button.
Preview:1280px
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| placeholder | string | 'Ask anything...' | Textarea placeholder text. |
| sources | SourceItem[] | [] | Items shown in the @ source picker. |
| commands | CommandItem[] | [] | Items shown in the / command palette. |
| models | ModelOption[] | [] | Models available in the model switcher. |
| onSubmit | (value: string, files?: File[]) => void | - | Fired on submit with the typed message and any attachments. |
| enableDictation | boolean | false | Show the dictation microphone button. |