Motionshelf
← All components

Messages

Chat Flow

From a button to a chat: picks, a sent message, typing dots and a reply.

Install

npx shadcn@latest add https://motionshelf-pi.vercel.app/r/chat-flow.json

Copies the file into your project. Requires React 19, Tailwind CSS v4 and GSAP (installed as a dependency).

Props

NameTypeDefaultDescription
brandstring"Acme"Business name in the chat header.
titlestring"Book a demo."Headline of the landing block.
optionsstring[]["Starter", "Pro", "Team"]Choices in the first row.
slotsstring[]["Tue 10am", "Wed 2pm", "Thu 4pm"]Choices in the second row.
picked[number, number][1, 1]Which choice the cursor picks: [option, slot].
buttonstring"Chat with us"Label of the button that opens the chat.
messagestring"Hi! I'd like to book a demo…"Message the visitor sends.
replystring"Confirmed! See you Wednesday at 2pm."Reply that comes back.
timestring"10:42"Time shown on the bubbles.
accentstring"#1f5bff"Color of the button.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react