FAQ Page React template for Tailwind CSS v4
v1.1.0Updated in 1.9.0
A React FAQ page template: a big search, topic cards with counts, 21 answers in five categories, help options and a call to action.
Type in the big search (press / to focus it from anywhere): the answers filter as you type across every topic, the field shows how many match, matching words are marked in the answers, the best match opens, and the topic cards step aside so the results sit right under the field. Enter scrolls to the results; Escape or Clear search brings everything back. Popular searches under the field fill it in one tap (tap again to clear). Each topic card counts its answers; picking one selects that topic in the FAQ and glides down to it (pick it again for all topics). The topic row above the questions switches categories too and scrolls sideways on phones; questions open one at a time. When nothing matches, an empty state offers Clear search and Contact support. With syncUrl the search and topic live in the address bar (?q=invoices#billing), so links open the page already filtered. Below, three help cards (docs, community, support) are each one link, and a call to action band closes the page. The hero rises in once on mount; reduced motion keeps it still.
FAQ Page is a free React template in the React website templates category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add faq-page, together with Marketing Section, Marketing Header, Marketing Footer, FAQ Section, CTA Section and 7 more and the npm packages motion and lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add faq-pageUsage
Import FaqPage from @/components/templates/faq-page.
// app/(marketing)/faq/page.tsx
"use client"
import Link from "next/link"
import { FaqPage } from "@/components/templates/faq-page"
export default function FaqRoute() {
return (
<FaqPage
linkComponent={Link}
onSearch={(query) => {
// count what people look for, to write the next answers
void fetch("/api/search-log", { method: "POST", body: query })
}}
/>
)
}Props
designdefault"classic""classic" | "minimal" | "editorial"The whole page's look. classic: the layout props, a grid backdrop, raised topic and help cards and a solid closing band; minimal: a transparent header, a plain page, a flat search field, outlined chips and topic cards, a borderless FAQ, flat help cards, no band, a plain closing call and a simple footer; editorial: a soft wash, a centered header, huge start-aligned type and an underlined search in one narrow column, the topics as a numbered index, numbered questions, help options as ruled rows and a wordmark footer. headerProps and footerProps still win.
backgrounddefault"grid""plain" | "soft" | "glow" | "aurora" | "grid" | "dots"The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one.
backgroundColordefault"oklch(0.62 0.14 275)"stringThe tint and glow color of the main background. Without one, a non-neutral tone tints the page.
bandBackgrounddefault"muted""muted" | "tinted" | "gradient" | "dots"The secondary background of the alternating bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color.
bandColordefault"oklch(0.62 0.14 275)"stringThe tint of tinted and gradient bands; defaults to backgroundColor.
topicsdefault"FAQ_PAGE_TOPICS"FaqPageTopic[]{ value, label, icon?, description? }: the topic cards and the FAQ categories; value matches FaqItem.category.
itemsdefault"FAQ_PAGE_ITEMS"FaqItem[]{ id?, question, answer, answerText?, category? }: 21 sample questions across five topics.
populardefault"FAQ_PAGE_POPULAR"string[]Quick searches under the field; an empty array hides the row.
helpdefault"FAQ_PAGE_HELP"FaqPageHelpOption[]{ icon?, title, description, href, action }: the Still need help? cards.
labelsdefault"DEFAULT_FAQ_PAGE_LABELS"Partial<FaqPageLabels>Every visible string.
defaultCategorydefault"all"stringThe topic selected on load: all or a topic value.
defaultQuerydefault""stringThe search on load, like a link from elsewhere would set it.
syncUrldefaulttruebooleanReads ?q= and #topic on load (and on hash changes) and keeps them in the address bar.
onSearch(query: string) => voidRuns on Enter and when a popular search is picked (analytics, a server search).
faqLayoutdefault"centered""centered" | "split" | "grid"The FAQ: one column with the topic row, the heading on the left, or two columns with every answer open. Applies to the classic design.
ctaVariantdefault"inverted""inverted" | "soft" | "split" | "plain"The look of the closing call to action band. Applies to the classic design.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The selected topic card and chip, the popular search in use and the open answer.
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The primary button of the call to action band.
showTopicsdefaulttruebooleanThe topic cards (hidden while searching).
showPopulardefaulttruebooleanThe popular searches under the field.
showHelpdefaulttruebooleanThe Still need help? cards.
showCtadefaulttruebooleanThe call to action band.
jsonLddefaulttruebooleanA FAQPage json-ld script with every answer, for search engines (left out while searching).
contactHrefdefault"/contact"stringWhere Contact support goes from the empty state.
headerdefaulttruebooleanThe marketing header; off inside a site layout.
footerdefaulttruebooleanThe marketing footer.
headerPropsPartial<MarketingHeaderProps>Passed to MarketingHeader.
footerPropsPartial<MarketingFooterProps>Passed to MarketingFooter.
animateIndefaulttruebooleanThe hero rises in once on mount; off in thumbnails and under reduced motion.
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for the header, footer and help cards (next/link in an app).
classNamestringClasses for the root.
classNamesPartial<Record<FaqPageSlot, string>>Classes for header, hero, search, popular, topics, topic, faq, empty, help, cta and footer.
Parts
FAQ_PAGE_SAMPLE
constantAll the sample content in one object: topics, items, popular and help.
FAQ_PAGE_TOPICS
constantGetting started, Billing, Account, Security and Integrations with lucide icons.
FAQ_PAGE_ITEMS
constant21 sample questions and answers.
FAQ_PAGE_POPULAR
constantFive popular searches.
FAQ_PAGE_HELP
constantDocs, community and support cards.
DEFAULT_FAQ_PAGE_LABELS
constantThe English strings.
FAQ_PAGE_DESIGNS
constantThe design names, classic first: ["classic", "minimal", "editorial"].
FaqPageDesign
type"classic" | "minimal" | "editorial".
FaqPageProps
typeProps of FaqPage: questions, topics, layout switches, labels and callbacks.
FaqPageTopic
typeA topic card and FAQ category in one.
FaqPageHelpOption
typeOne Still need help? card.
Examples
Minimal design
design="minimal": a transparent header, no grid, a flat search, outlined topics and help cards, no gray band.
Editorial design
design="editorial": huge start-aligned type in one narrow column, a numbered topic index and numbered questions.
Brand help center
tone and ctaTone brand: the selected topic, chips and the call to action in orange.
Opened from a search link
defaultQuery "invoice": the results with marked words, as /faq?q=invoice would open.
Everything open
faqLayout grid shows every answer in two columns; a soft call to action.
Inside a docs site
No header, footer or call to action: search, topics, answers and help options.
Dependencies
Files
- components/templates/faq-page.tsx
- components/templates/faq-page-data.ts
FAQ
Is the React FAQ Page template free?
Yes. The source is free and needs no account: copy it from the Code tab or install it with the CLI.
How do I install FAQ Page?
Run npx wingo-ui@latest add faq-page. It also adds the Wingo UI items it builds on (Marketing Section, Marketing Header, Marketing Footer, FAQ Section, CTA Section and 7 more) and the npm packages motion and lucide-react. With shadcn, run npx shadcn@latest add https://wingo-ui.com/r/faq-page.json.
How does FAQ Page behave on phones?
The topic row above the questions switches categories too and scrolls sideways on phones; questions open one at a time.
See also
Related guides
- Help Center Template for React: Search, Topics, Articles
Build it: screens and apps9 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.