value | string
| -
| |
defaultValue | string
| -
| |
onChange | ((value: string) => void)
| -
| Callback when text changes |
placeholder | string
| 'Ask Photonix'
| |
onSend | ((value: string, attachments?: FileAttachment[]) => void)
| -
| Callback when user submits (Enter or Click Send) |
onAttach | (() => void)
| -
| Callback when clicking attachment button |
attachments | FileAttachment[]
| []
| |
onAttachmentsChange | ((attachments: FileAttachment[]) => void)
| -
| Callback when attachments change (e.g., when removing) |
speechLanguage | string
| 'vi-VN'
| Language for speech recognition (default: 'vi-VN') |
agentLabel | string
| 'Agent'
| Label for Agent selector (e.g. "Agent") |
onAgentClick | (() => void)
| -
| Callback for Agent selector click (without dropdown) |
agentOptions | DropdownOption[]
| -
| Options for Agent dropdown (if provided, shows dropdown) |
onAgentChange | ((value: string) => void)
| -
| Callback when agent option changes |
modelLabel | string
| 'GPT-5'
| Label for Model selector (e.g. "GPT-5") |
onModelClick | (() => void)
| -
| Callback for Model selector click (without dropdown) |
modelOptions | DropdownOption[]
| -
| Options for Model dropdown (if provided, shows dropdown) |
onModelChange | ((value: string) => void)
| -
| Callback when model option changes |
agentSelector | React.ReactNode
| -
| Custom React Node for Agent selector (overrides agentLabel/agentOptions) |
modelSelector | React.ReactNode
| -
| Custom React Node for Model selector (overrides modelLabel/modelOptions) |
disabled | boolean
| -
| |
error | boolean
| -
| |
loading | boolean
| -
| |
className | string
| -
| |
style | React.CSSProperties
| -
| |