hadcn chat
Chat Input
The ChatInput component chat-input.svelte
is used as an text-area with predefined
styling to fit well with the other components.
API Reference
Prop | Type | Default | Description |
---|---|---|---|
value | 'string' | 'null' | A string that represents the raw value contained in the control. |
onkeydown | () => | 'default' | Keyboard event listener. |
onchange | () => | null | Event handler function that fires when the input's value changes. |
placeHolder | string | null | Displayed in a dimmed color when the text area value is empty. |
className | string | null | Additional classes to apply to the chat bubble. |
On this page