AI ChatV0
ChatV0 is a component that allows you to chat with a user.
Powered by
ChatV0
Installation
npx dedevs-ui@latest add chatv0
Props
Prop | Type | Default | Description |
---|---|---|---|
messages | Message[] | [] | The messages to display in the chat |
className | string | '' | The class name to apply to the component |
onMessage | (message: Message) => void | () => {} | The function to call when a message is sent |
onMessageError | (error: Error) => void | () => {} | The function to call when a message error occurs |
onMessageStart | () => void | () => {} | The function to call when a message starts |
onMessageEnd | () => void | () => {} | The function to call when a message ends |
Prop | Type | Default |
---|---|---|
className | string | - |
onMessage | (message: Message) => void | - |
onMessageError | (error: Error) => void | - |
onMessageStart | () => void | - |
onMessageEnd | () => void | - |
placeholder | string | - |
minHeight | number | - |
maxHeight | number | - |
actionButtons | ActionButtonProps[] | - |
sendButtonLabel | string | - |
attachButtonLabel | string | - |
projectButtonLabel | string | - |