Skip to content

FAQ

Questions and answers in two columns: the heading on the left, held in place while the list scrolls; the questions on the right.

Download
Customize

A question opens on a spring with its answer rising in as the panel grows. Opening one can close the others; arrow keys move between questions.

Install

npx shadcn@latest add https://obsydeui.com/r/faq.json

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Faq } from '@/components/obsyde/ember/faq/Faq';

export function Example() {
  return (
    <Faq />
  );
}

Files

Plain React, TypeScript and CSS. No dependencies. The download keeps these paths.

  • ember/faq/Faq.tsxcomponent
  • ember/faq/faq-demo.cssstyles
  • ember/faq/faq.cssstyles
  • ember/faq/FaqDemo.tsxdemo
  • ember/blocks-kit/kit.tsxshared
  • ember/shared/accent.tsshared
  • ember/shared/spring.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
typeOpen'multiple' | 'single''multiple'
firstOpenFirst question openbooleantrue