Motionshelf
← All components

Messages

Question Typer

Each question is typed out and its answer appears right under it, changing with every question.

Install

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

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

Props

NameTypeDefaultDescription
items{ question, answer }[]three example pairsEach question is typed out, then its answer appears under it.
answerLabelstring"Answer"Label above the answer.
accentstring"#1f5bff"Accent of the bar and the answer mark.
loopbooleantrueReplay forever with a pause between runs.
classNamestring""Extra classes for the outer element.

Dependencies

  • gsap
  • @gsap/react