Faq Journey
FaqJourney is a single-file registry block that renders a full-screen, white-background FAQ page with a numbered vertical timeline, eight questions in a single-open accordion, and staggered blur-to-sharp entrance animations powered by motion. It exports a prop-less FaqJourney component and depends on a TimelineAnimation helper that is installed alongside it.
Installation
Usage
import { FaqJourney } from '@/components/blocks/faq-journey'export default function Page() { return <FaqJourney />}- Showing a polished, animated FAQ section on a marketing or landing page where a plain accordion would feel too flat.
- Presenting a sequenced set of up to eight Q&A items as a visual step-by-step journey with numbered markers.
- Reusing the TimelineAnimation helper to reveal any block of content with a blur and fade triggered by scroll position relative to a parent ref.
- Replacing a static FAQ list in a showcase or product page where motion and numbered sequencing help guide the reader.
Examples
Basic FAQ page
Drop the block into a route. It takes no props and renders its own heading, timeline, and eight questions.
import { FaqJourney } from '@/components/blocks/faq-journey'export default function FaqPage() { return <FaqJourney />}Within a landing page layout
Place the block between other marketing sections. The section is min-h-screen, so it fills the viewport on its own.
import { FaqJourney } from '@/components/blocks/faq-journey'export default function LandingPage() { return ( <main> <FaqJourney /> </main> )}Reusing TimelineAnimation with custom variants
The helper is exported separately and can animate any element. This example uses a simple fade-up variant instead of the default blur.
import { useRef } from 'react'import type { Variants } from 'motion/react'import { TimelineAnimation } from '@/components/ui/timeline-animation'const fadeUp: Variants = { visible: (i: number) => ({ opacity: 1, y: 0, transition: { delay: i * 0.2, duration: 0.4 } }), hidden: { opacity: 0, y: 24 },}export function Intro() { const ref = useRef<HTMLDivElement>(null) return ( <div ref={ref}> <TimelineAnimation as='h2' animationNum={0} timelineRef={ref} customVariants={fadeUp} className='text-2xl font-semibold'> Have questions? </TimelineAnimation> </div> )}API reference
Accessibility
- The heading is rendered as an h1 via TimelineAnimation as='h1', so the page has a clear document title. Consider using an h1 only once per page.
- Questions are rendered by AccordionHeader and answers by AccordionPanel, which provide the expand and collapse semantics, keyboard focus, and ARIA state from the accordion primitives.
- Only one panel is open at a time, and the first question is open by default through defaultValue='g1'. Users who need several answers open together must edit the Accordion props in the source.
- The animation hides content with opacity 0 and blur until it enters the viewport. Content with once set to true stays visible after it first appears. Respect reduced-motion preferences by overriding customVariants in your own code if needed.
- Numbered badges are decorative text, so screen readers will read the number followed by the question. Color contrast relies on neutral-900 and slate-500 text on white and neutral-100 surfaces, so verify contrast in your theme.
- The file depends on '@/components/ui/accordion', which is not listed in registryDependencies. Install the accordion component first if it is missing in your project.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Faq Journey" component (ui-layouts/faq-journey) from its shadcn registry.1. Install it with: npx shadcn@latest add https://ui-layouts.com/r/faq-journey.json2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: FaqJourney, children, animationNum, timelineRef, as, className, customVariants, once.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { FaqJourney } from '@/components/blocks/faq-journey'export default function Page() { return <FaqJourney />}```Files & dependencies
- ../../packages/blocks/src/faq-section/faq-journey.tsx
- ./components/ui/timeline-animation.tsx
Looks similar, elsewhere
There is no screenshot of this item to compare yet.