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

PropTypeDefaultDescription
value'string''null'A string that represents the raw value contained in the control.
onkeydown() =>'default'Keyboard event listener.
onchange() =>nullEvent handler function that fires when the input's value changes.
placeHolderstringnullDisplayed in a dimmed color when the text area value is empty.
classNamestringnullAdditional classes to apply to the chat bubble.