DeDevs UI
Header Background

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

PropTypeDefaultDescription
messagesMessage[][]The messages to display in the chat
classNamestring''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
PropTypeDefault
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
-

On this page