hadcn chat
Getting Started
- 1
- 2Install necessary components
Add the following shadcn components to your project.
npx shadcn-svelte@next add button textarea avatar - 3Step
Initialize the chat components with
npx @shadcn-svelte-chat/cli initThe components will be added to the
"src/components/ui/chat"
directory.
Example
US
Hello, how has your day been? I hope you are doing well.
AI
Hi, I am doing well, thank you for asking. How can I help you today?
US
Did you by chance have a look at the chat component?
AI
No I didn't. But will check when I have time
US
{message.message}
On this page