Skip to content

Soft cards

FAQ with question cards and a closing chat prompt.

Usage

Usage
import { FaqSoftCards } from '@/components/blocks/faq-03'


<FaqSoftCards />


// Swap in your own content
<FaqSoftCards
  title="All your questions, answered"
  type="multiple"
  defaultOpen={[0]}
  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.' },
  ]}
  contactLabel="Talk to sales"
  contactHref="/contact"
/>

Install

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

Source

Props

Soft cards props
PropTypeDefaultDescription
eyebrowstring= ''Optional small label above the heading.
titlestring= 'Answers for busy shop owners'Section heading.
descriptionstring= ''Optional supporting line under the heading.
itemsFaqSoftCardItem[]= Five commerce questionsQuestion and answer pairs. Answers accept any ReactNode.
type'single' | 'multiple'= 'single'Whether opening a question closes the others.
defaultOpennumber | number[]= —Index or indexes of the questions open on first render.
contactTitlestring= 'Want to talk it through?'Heading of the closing call to action.
contactTextstring= Short call invite copySupporting text under the call-to-action heading.
contactLabelstring= 'Pick a time'Button label. Pass an empty string to hide the call to action.
contactHrefstring= 'mailto:hello@example.com'Where the button links to.
classNamestring= —Additional classes for the section.