FAQ sections
The questions people ask before they sign up, answered: an accordion, every answer open in two columns, a contact card beside the questions, or questions grouped by topic.
4 blocks below, each one file and one command. They wear whichever DressCode theme you install, in light and dark.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/faq-accordion.jsoncomponents/dresscode/faq-accordion.tsx
// FAQ, accordion: a centered heading over the questions, each one its own card that opens in place. One
// answer is open at a time and the first starts open, so the section never looks empty.
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"
const FAQS = [
["Is Orbit really free for three clients?", "Yes. The Free plan has no time limit and no card on file. You only pay when you add a fourth client or want the Studio features."],
["What does it cost to get paid?", "Card payments cost 2.9% + 30¢ and bank transfers 0.8%, capped at $5. Fees are shown on every invoice before you send it, and you can pass them on to the client."],
["Will my clients need an account?", "No. They get an email with a link to the invoice and pay in a minute. They can come back to the same link to download receipts."],
["Can reminders really sound like me?", "You write the first reminder, or pick a tone, and Orbit keeps that voice for the others. You can read every reminder before it goes out."],
["Can I import my clients and old invoices?", "Yes. Import a CSV from your spreadsheet or your old tool, and Orbit keeps the invoice numbers going from where you left off."],
["Is my data safe?", "Data is encrypted in transit and at rest, sign-in supports two-step codes, and every change is logged. You can export or delete everything at any time."],
["Can I cancel any time?", "Yes. Cancel from settings and you drop to the Free plan at the end of the period. Your invoices stay where they are."],
]
const link = "rounded-sm font-semibold text-foreground underline underline-offset-4 outline-none hover:text-[color:var(--dc-accent)] focus-visible:ring-3 focus-visible:ring-ring/50"
export default function FaqAccordion() {
return (
<section aria-labelledby="faq-accordion-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="mx-auto max-w-[640px] text-center">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">FAQ</p>
<h2 id="faq-accordion-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Questions, answered
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">The things people ask most before they send their first invoice with Orbit.</p>
</div>
<Accordion defaultValue={["0"]} className="mx-auto mt-12 max-w-[780px] gap-3">
{FAQS.map(([q, a], i) => (
<AccordionItem key={q} value={String(i)} className="dc-card px-5 not-last:border-b-[length:var(--dc-bw)] sm:px-6">
<AccordionTrigger className="py-5 text-[17px] leading-6 font-semibold hover:no-underline **:data-[slot=accordion-trigger-icon]:mt-1">{q}</AccordionTrigger>
<AccordionContent className="pb-5 text-[16px] leading-relaxed text-muted-foreground">{a}</AccordionContent>
</AccordionItem>
))}
</Accordion>
<p className="mt-10 text-center text-[15px] text-muted-foreground">
Still unsure? Browse the{" "}
<a href="#help" className={link}>
help center
</a>{" "}
or{" "}
<a href="#contact" className={link}>
write to us
</a>
.
</p>
</div>
</section>
)
}Two columns, all open
Every question and answer visible at once in a two-column grid, for short answers people should not have to click for.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/faq-two-column.jsoncomponents/dresscode/faq-two-column.tsx
// FAQ, two columns: every question and its answer visible at once, no clicking. Good for short answers.
// The heading sits left with a link to the help center on the right; the questions run in two columns on
// wider screens and one on phones, as a description list.
import { ArrowRight } from "lucide-react"
const FAQS = [
["How long does it take to set up?", "About ten minutes. Add your logo and bank details, import your clients from a CSV, and the first invoice is ready to send."],
["Do my clients need an account?", "No. They get an email with a link, see the invoice in their browser and pay in a minute, on any device."],
["How can clients pay?", "By card, Apple Pay, Google Pay or bank transfer. You choose which methods appear on each invoice."],
["When does the money reach my bank?", "Card payments land in two working days. Bank transfers arrive as soon as your client's bank sends them."],
["Can I bill in other currencies?", "Yes. Studio covers five currencies and Agency thirty. Orbit shows the rate it used on every payment."],
["Does Orbit handle tax?", "Set a tax rate per client or per line, and Orbit adds it and keeps a tax report you can export at the end of the quarter."],
["Can my accountant get access?", "Invite them for free. They can read and export everything but can't send invoices or change your settings."],
["What happens if I leave?", "Export every invoice and payment as CSV and PDF. We delete your data 30 days after you close the account."],
]
export default function FaqTwoColumn() {
return (
<section aria-labelledby="faq-two-column-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="flex flex-wrap items-end justify-between gap-x-8 gap-y-5">
<div className="max-w-[560px]">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Good to know</p>
<h2 id="faq-two-column-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Frequently asked questions
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">Short answers to what freelancers and studios ask us most. Everything else is in the help center.</p>
</div>
<a
href="#help"
className="inline-flex items-center gap-1.5 rounded-sm text-[15px] font-semibold outline-none hover:text-[color:var(--dc-accent)] focus-visible:ring-3 focus-visible:ring-ring/50"
>
Visit the help center <ArrowRight className="size-4" aria-hidden="true" />
</a>
</div>
<dl className="mt-12 grid gap-x-14 md:grid-cols-2">
{FAQS.map(([q, a]) => (
<div key={q} className="border-t border-border py-7">
<dt className="text-[17px] font-semibold">{q}</dt>
<dd className="mt-2 text-[16px] leading-relaxed text-muted-foreground">{a}</dd>
</div>
))}
</dl>
</div>
</section>
)
}With a contact card
The heading and a card for people who still have a question on the left, the accordion on the right.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/faq-with-contact.jsoncomponents/dresscode/faq-with-contact.tsx
// FAQ with a contact card: the heading and a "still have questions" card on the left (it stays in view
// while the questions scroll on wide screens), the accordion on the right. On phones the card comes after
// the heading and before the questions.
import { Clock, Mail } from "lucide-react"
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"
import { Button } from "@/components/ui/button"
const FAQS = [
["Is Orbit really free for three clients?", "Yes. The Free plan has no time limit and no card on file. You only pay when you add a fourth client or want the Studio features."],
["What does it cost to get paid?", "Card payments cost 2.9% + 30¢ and bank transfers 0.8%, capped at $5. Fees are shown on every invoice before you send it, and you can pass them on to the client."],
["Will my clients need an account?", "No. They get an email with a link to the invoice and pay in a minute. They can come back to the same link to download receipts."],
["Can reminders really sound like me?", "You write the first reminder, or pick a tone, and Orbit keeps that voice for the others. You can read every reminder before it goes out."],
["Can I import my clients and old invoices?", "Yes. Import a CSV from your spreadsheet or your old tool, and Orbit keeps the invoice numbers going from where you left off."],
["Can I cancel any time?", "Yes. Cancel from settings and you drop to the Free plan at the end of the period. Your invoices stay where they are."],
]
const TEAM = ["AL", "KM", "JS"]
export default function FaqWithContact() {
return (
<section aria-labelledby="faq-with-contact-title" className="py-16 sm:py-24">
<div className="mx-auto grid w-full max-w-[1200px] gap-12 px-5 sm:px-8 lg:grid-cols-[1fr_1.6fr] lg:gap-16">
<div className="lg:sticky lg:top-8 lg:self-start">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">FAQ</p>
<h2 id="faq-with-contact-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Questions, answered
</h2>
<p className="mt-4 max-w-[460px] text-[17px] leading-relaxed text-muted-foreground">What people ask before they move their invoicing to Orbit.</p>
<div className="dc-card mt-8 max-w-[460px] p-6">
<div className="flex -space-x-2" aria-hidden="true">
{TEAM.map((p) => (
<span key={p} className="grid size-10 place-items-center rounded-full bg-[color:color-mix(in_oklab,var(--dc-accent)_16%,var(--card))] text-[12px] font-bold ring-2 ring-[color:var(--card)]">
{p}
</span>
))}
</div>
<h3 className="dc-h mt-4 text-[20px] leading-snug">Still have a question?</h3>
<p className="mt-1.5 text-[15px] leading-relaxed text-muted-foreground">Ada, Kofi and Jun read every message themselves. No bots, no ticket numbers.</p>
<p className="mt-3 flex items-center gap-2 text-[14px] text-muted-foreground">
<Clock className="size-4 shrink-0 text-[color:var(--dc-accent)]" aria-hidden="true" />
Usually a reply within three hours on weekdays
</p>
<div className="mt-5 flex flex-wrap gap-2.5">
<Button className="h-10 px-4 font-semibold" nativeButton={false} render={<a href="#contact" />}>
<Mail className="size-4" aria-hidden="true" /> Write to us
</Button>
<Button variant="outline" className="h-10 px-4 font-semibold" nativeButton={false} render={<a href="#call" />}>
Book a call
</Button>
</div>
</div>
</div>
<Accordion defaultValue={["0"]} className="divide-y divide-border self-start border-y border-border">
{FAQS.map(([q, a], i) => (
<AccordionItem key={q} value={String(i)} className="border-0">
<AccordionTrigger className="py-5 text-[17px] leading-6 font-semibold hover:no-underline **:data-[slot=accordion-trigger-icon]:mt-1">{q}</AccordionTrigger>
<AccordionContent className="pb-5 text-[16px] leading-relaxed text-muted-foreground">{a}</AccordionContent>
</AccordionItem>
))}
</Accordion>
</div>
</section>
)
}Grouped by topic
Questions sorted into billing, payments, account and security, with a topic list beside an accordion for the chosen topic.
npx shadcn@latest add https://dresscodeui.com/r/dresscode/faq-categories.jsoncomponents/dresscode/faq-categories.tsx
// FAQ grouped by topic: billing, payments, account and security. A topic list (tabs; the arrow keys move
// between topics) sits beside a card with the chosen topic's questions in an accordion. On phones the
// topics become a grid of buttons above the card.
import { type LucideIcon, Receipt, ShieldCheck, UserRound, Wallet } from "lucide-react"
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion"
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
const TOPICS: { id: string; label: string; icon: LucideIcon; body: string; faqs: [string, string][] }[] = [
{
id: "billing",
label: "Billing",
icon: Receipt,
body: "Your plan, when we charge you and changing what you pay.",
faqs: [
["When will I be charged?", "On the day your trial ends, then on the same date each month or year. We email you three days before every charge."],
["Can I switch between monthly and yearly?", "Yes, from Settings. Moving to yearly takes effect straight away and we credit what is left of the month."],
["Do you give refunds?", "If you forget to cancel a yearly plan, write to us within 14 days of the renewal and we refund it in full."],
["Do I get invoices for my own books?", "Every charge comes with a PDF invoice showing your company details and tax number. They all live under Settings, Billing."],
],
},
{
id: "payments",
label: "Payments",
icon: Wallet,
body: "How your clients pay you and when the money arrives.",
faqs: [
["Which payment methods can my clients use?", "Card, Apple Pay, Google Pay and bank transfer. Turn each one on or off for every invoice."],
["What are the fees?", "Cards cost 2.9% + 30¢ and bank transfers 0.8%, capped at $5. There is no monthly fee for taking payments."],
["When does the money reach my bank?", "Card payments land in two working days. Bank transfers arrive as soon as your client's bank sends them."],
["Can a client pay in parts?", "Yes. Turn on payment plans and a client can split an invoice into up to four payments. Orbit chases each one."],
],
},
{
id: "account",
label: "Account",
icon: UserRound,
body: "Your team, your accountant and the businesses you run.",
faqs: [
["Can I add someone from my team?", "Studio includes two seats and Agency five. Each person signs in with their own email and sees only what their role allows."],
["Can my accountant see my invoices?", "Invite them for free as a read-only member. They can export everything but can't send or change anything."],
["Can I run two businesses from one account?", "On Agency, yes. Each brand keeps its own logo, invoice numbers and bank details."],
["How do I close my account?", "From Settings. Export your data first: we delete everything 30 days after you close the account."],
],
},
{
id: "security",
label: "Security",
icon: ShieldCheck,
body: "Where your data lives and who can see it.",
faqs: [
["Where is my data stored?", "In data centers in the EU or the US, encrypted in transit and at rest. You pick the region when you sign up."],
["Do you support two-step sign-in?", "Yes, with an authenticator app or a passkey. Agency owners can make it required for everyone."],
["Who at Orbit can see my invoices?", "Nobody, unless you ask support to look at something. Every access is logged, and you can read the log in Settings."],
["What if someone signs in from a new device?", "We email you straight away with the device and where it is, and one click signs it out."],
],
},
]
export default function FaqCategories() {
return (
<section aria-labelledby="faq-categories-title" className="py-16 sm:py-24">
<div className="mx-auto w-full max-w-[1200px] px-5 sm:px-8">
<div className="max-w-[640px]">
<p className="text-sm font-semibold text-[color:var(--dc-accent)]">Help center</p>
<h2 id="faq-categories-title" className="dc-h mt-3 text-[32px] leading-[1.1] sm:text-[42px]">
Find an answer by topic
</h2>
<p className="mt-4 text-[17px] leading-relaxed text-muted-foreground">Pick a topic to see the questions people ask about it most.</p>
</div>
<Tabs defaultValue="billing" className="mt-10 flex-col gap-8 sm:mt-12 lg:grid lg:grid-cols-[260px_1fr] lg:gap-14">
<TabsList
aria-label="Topics"
className="grid h-auto w-full grid-cols-2 gap-2 rounded-none bg-transparent p-0 group-data-horizontal/tabs:h-auto sm:grid-cols-4 lg:flex lg:flex-col lg:items-stretch lg:self-start"
>
{TOPICS.map(({ id, label, icon: Icon, faqs }) => (
<TabsTrigger
key={id}
value={id}
className="h-11 w-full flex-none justify-start gap-2.5 rounded-[var(--radius)] border border-border px-3 text-[15px] font-semibold text-muted-foreground hover:bg-muted hover:text-foreground data-active:border-transparent data-active:bg-[color:color-mix(in_oklab,var(--dc-accent)_12%,transparent)] data-active:text-[color:var(--dc-accent)] data-active:hover:bg-[color:color-mix(in_oklab,var(--dc-accent)_12%,transparent)] data-active:hover:text-[color:var(--dc-accent)] dark:text-muted-foreground dark:hover:text-foreground dark:data-active:border-transparent dark:data-active:bg-[color:color-mix(in_oklab,var(--dc-accent)_16%,transparent)] dark:data-active:text-[color:var(--dc-accent)] dark:data-active:hover:bg-[color:color-mix(in_oklab,var(--dc-accent)_16%,transparent)] dark:data-active:hover:text-[color:var(--dc-accent)] lg:border-transparent"
>
<Icon className="size-[18px]" aria-hidden="true" />
{label}
<span aria-hidden="true" className="dc-num ml-auto text-[12px] font-medium opacity-70">
{faqs.length}
</span>
</TabsTrigger>
))}
</TabsList>
{TOPICS.map(({ id, label, body, faqs }) => (
<TabsContent key={id} value={id} className="dc-card min-w-0 px-5 pt-6 pb-2 focus-visible:ring-3 focus-visible:ring-ring/50 sm:px-8 sm:pt-8">
<h3 className="dc-h text-[24px] leading-tight">{label}</h3>
<p className="mt-1.5 text-[16px] text-muted-foreground">{body}</p>
<Accordion defaultValue={[`${id}-0`]} className="mt-4 divide-y divide-border">
{faqs.map(([q, a], i) => (
<AccordionItem key={q} value={`${id}-${i}`} className="border-0">
<AccordionTrigger className="py-5 text-[17px] leading-6 font-semibold hover:no-underline **:data-[slot=accordion-trigger-icon]:mt-1">{q}</AccordionTrigger>
<AccordionContent className="pb-5 text-[16px] leading-relaxed text-muted-foreground">{a}</AccordionContent>
</AccordionItem>
))}
</Accordion>
</TabsContent>
))}
</Tabs>
</div>
</section>
)
}