Chat Input
A chat input component with send button and keyboard shortcuts
Preview
Installation
Usage
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | - | The current input value |
onValueChange | (text: string) => void | - | Callback when the input value changes |
onSend | (text: string) => void | - | Callback when send is triggered |
placeholder | string | 'Write a message...' | Placeholder text for the input |
sendIcon | React.ReactNode | <Send /> | Custom icon for the send button |
menu | React.ReactNode | - | Additional menu content rendered after the send button |