A customer support chat for the corner of any page: a launcher that opens a panel with quick replies, a typing indicator, an attachment chip and an away mode that asks for an email.
Installation
pnpm dlx shadcn@latest add https://kagadmodyaa.vercel.app/r/chat-01.jsonNeeds a React + Tailwind project set up with shadcn. Copies the block's files into your project, along with the components it uses, so you can edit all of it.
Files
What the command adds to your project, and where.
app/chat/page.tsxThe page itself, at the route it is meant for. Move or rename it to suit your app.
components/chat-01/chat-data.tsA component the page imports. Edit it freely.
components/chat-01/chat-page.tsxA component the page imports. Edit it freely.
components/chat-01/chat-widget.tsxA component the page imports. Edit it freely.
components/chat-01/icons.tsxA component the page imports. Edit it freely.
It also installs the components it is built from, unless you already have them: Avatar, Button, Input, Switch.
The block uses one accent colour. Installing adds a --brand variable to your global CSS (an existing one is left alone); change it to match your product.
Links, copy and the product name are placeholders; swap in your own. Where a block has a form, its submit handler is a stub for your own request.