Skip to content

Shader glass

FAQ with frosted cards over a band of blue light.

Usage

Usage
import { FaqShader } from '@/components/blocks/faq-02'


<FaqShader />


// Swap in your own content and shader palette
<FaqShader
  eyebrow="// Help"
  title="Questions, answered"
  description="Everything you need to know before getting started."
  type="multiple"
  defaultOpen={[0, 1]}
  items={[
    { question: 'Is there a free plan?', answer: 'Yes, free forever for small teams.' },
    { question: 'Can I cancel anytime?', answer: 'Of course, straight from billing settings.' },
  ]}
  color={[0.12, 0.37, 0.85]}
  highlight={[0.5, 0.7, 1]}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/faq-02

Source

Props

Shader glass props
PropTypeDefaultDescription
eyebrowstring= '// Quick answers'Small label above the heading. Pass an empty string to hide it.
titlestring= 'Before you dive in'Section heading.
descriptionstring= —Optional supporting line under the heading.
itemsFaqShaderItem[]= Four onboarding questionsQuestion and answer pairs. Answers accept any ReactNode.
type'single' | 'multiple'= 'single'Whether opening a question closes the others.
defaultOpennumber | number[]= 0Index or indexes of the questions open on first render.
color[number, number, number]= [0.17, 0.5, 1]RGB base color of the shader light band, from 0 to 1.
highlight[number, number, number]= [0.56, 0.77, 1]RGB color of the brightest streaks in the band, from 0 to 1.
speednumber= 1How fast the light band flows.
classNamestring= —Additional classes for the section.