Skip to content
Website Sections

FAQMorph

Questions on one side, one answer panel on the other. The marker slides to the question and the panel reshapes to fit. Narrow, it becomes an accordion.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
itemsFAQMorphItem[]—Each has question and answer.
titlestring—Heading above the questions.
eyebrowstring—Small line above the title.
subtitlestring—Line under the title.
defaultOpennumber0Which question starts open.
tilestring"#15122a"Colour of the marker and the answer panel.
colorstring"#a78bfa"Colour of the number in the answer panel.
headingAsElementType"h2"Heading tag.
classNamestring"bg-[#0b0a14] px-5 py-16 text-white"Set padding and colours here.