FAQ Accordion

A two-column FAQ: rows expand on a height spring, the plus rotates into a cross, the open row lifts onto a soft surface and answers un-blur in. ↑ ↓ Home End move between questions.

Try it: Click a question or use ↑ ↓ and Enter.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/faq-accordion.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/faq-accordion. You can also copy the source into components/ui/faq-accordion.tsx (view on GitHub).

Usage

import { FaqAccordion } from '@/components/ui/faq-accordion'

Props

Component props
PropTypeDefaultNotes
itemsFaqItem[]DEFAULT_FAQ{ q, a }
multiplebooleanfalseAllow several rows open.
defaultOpennumber[][0]Initially open rows.
title / asidestring / ReactNode—Heading and side copy.

Dependencies

  • motion
  • lucide-react
  • Testimonial Wall

    A masonry wall of quote cards whose columns drift in opposite directions at different speeds, faded at the edges, with a pause button; reduced motion shows a static scrollable wall.

  • Pricing Plans

    Three-tier pricing with a sliding monthly/yearly switch whose numerals roll digit by digit, a highlighted ink plan with a light rim, and a “you save” chip that springs in on yearly.

  • Feature Comparison Table

    A plan comparison table with a sticky header, collapsible groups, a tinted highlighted column, row hover and a one-plan-at-a-time switcher on phones. Real table semantics with screen-reader labels…

  • Glass Mega Navbar

    A full-width bar that contracts into a floating glass pill on scroll. Menus open into one mega panel that slides between sections with a blur, a hover pill glides between triggers, and phones get a…

  • CTA Glow Banner

    A closing call-to-action on an ink panel: a soft lilac and orange aurora trails the pointer behind a fine dot grid, the block rises in on scroll and the arrow nudges on hover.

  • Activity Rings

    Apple Watch-style concentric progress rings: gradient strokes sweep in on a spring, overshooting 100% laps over itself with a shadowed tip, and the legend numbers roll up.

See all 14 Website Sections components