FAQ
FreeQuestions grouped by topic with a sliding tab, live search that highlights matches and opens the results, spring accordions and an empty state.
2 examples. Resize any preview to see it at phone and tablet widths.
Questions grouped by topic with a sliding tab, live search that highlights matches and opens the results, spring accordions and an empty state.
Questions grouped by topic with every answer visible, for pages where nothing should hide behind a click.
import { ArrowUpRight } from "lucide-react";
const groups = [
{ title: "Billing", items: [
{ q: "Can I switch plans at any time?", a: "Yes. Upgrades take effect right away and we credit the unused part of your current plan." },
{ q: "Do you offer refunds?", a: "Within 30 days of a charge, for any reason. Write to support and it is back on your card in a few days." },
{ q: "Which payment methods work?", a: "All major cards, plus invoices by bank transfer on annual plans." },
] },
{ title: "Security", items: [
{ q: "Where is our data stored?", a: "In the region you choose when you create the workspace. It does not leave that region." },
{ q: "Do you support single sign-on?", a: "SAML and OIDC are included on every plan, with directory sync for larger teams." },
{ q: "Can we export everything?", a: "At any time, as CSV or JSON, from the workspace settings. No ticket needed." },
] },
];
export default function FaqColumns() {
return (
<section className="w-full px-6 py-16 sm:px-10 sm:py-20">
<div className="mx-auto max-w-5xl">
<div className="flex flex-wrap items-end justify-between gap-4">
<h2 className="text-balance text-3xl font-semibold tracking-[-0.035em] sm:text-4xl">Before you ask.</h2>
<a href="#contact" className="group inline-flex items-center gap-1 rounded-sm text-sm font-medium outline-none hover:underline hover:underline-offset-4 focus-visible:ring-2 focus-visible:ring-ring">
Talk to a person <ArrowUpRight className="size-4 text-muted-foreground transition-transform duration-200 ease-out group-hover:-translate-y-0.5 group-hover:translate-x-0.5 motion-reduce:transition-none" aria-hidden />
</a>
</div>
<div className="mt-10 grid gap-x-12 gap-y-10 md:grid-cols-2">
{groups.map(({ title, items }) => (
<div key={title}>
<h3 className="border-b border-border pb-3 font-mono text-xs uppercase tracking-[0.14em] text-muted-foreground">{title}</h3>
{/* Every answer is on the page: nothing to open, and nothing hidden from search. */}
<dl>
{items.map(({ q, a }) => (
<div key={q} className="border-b border-border py-5">
<dt className="font-medium">{q}</dt>
<dd className="mt-1.5 text-pretty text-sm leading-relaxed text-muted-foreground">{a}</dd>
</div>
))}
</dl>
</div>
))}
</div>
</div>
</section>
);
}