Contact Page React template for Tailwind CSS v4
v1.1.0Updated in 1.9.0
A React contact page template: a validated form, copyable channels with live office hours, offices on a drawn map, a short FAQ and logos.
Pick a topic (Sales, Support, Partnerships, Press) as cards with arrow keys or a tap, then fill in name, work email, company, company size (a bottom sheet on phones) and a message with a live character counter, and tick the consent box. Send message checks every field: each problem shows under its field and focus jumps to the first one; the email is also checked as soon as you leave it, and errors clear as you fix them. Company size is required for Sales only. While onSubmit runs the button spins; then the form turns into a Message sent panel ("Thanks, Emma. We'll reply within one business day.") with Send another, which keeps your name and email. Next to the form (under it on phones) the sales and support addresses and the phone number have copy buttons, Start a chat opens the chat, and Office hours shows Open now or Closed with the next opening, worked out in the office's time zone after the page loads. The office cards show each city's local time; picking one moves the drawn map and its Get directions link. The FAQ opens one answer at a time. The heading, form and channels rise in once on mount; reduced motion keeps them still.
Contact 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 contact-page, together with Marketing Section, Marketing Header, Marketing Footer, FAQ Section, Logo Cloud and 13 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 contact-pageUsage
Import ContactPage from @/components/templates/contact-page.
// app/(marketing)/contact/page.tsx
"use client"
import Link from "next/link"
import { ContactPage } from "@/components/templates/contact-page"
export default function ContactRoute() {
return (
<ContactPage
linkComponent={Link}
onSubmit={async (values) => {
const response = await fetch("/api/contact", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(values),
})
if (!response.ok) throw new Error("Could not send")
}}
/>
)
}Props
designdefault"classic""classic" | "minimal" | "bold"The whole page's look. classic: the layout prop, a soft glow, the form and channels on raised cards; minimal: a soft backdrop, a transparent header, no cards, the form right on the page beside a plain channel list, no band, a feature-light FAQ and a simple footer; bold: a solid header, huge heavy type on a grid with gradient bands, the channels and hours on a big inverted panel beside a floating form, logo tiles, an inverted selected office, FAQ cards and a wordmark footer. headerProps and footerProps still win.
backgrounddefault"glow""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. Classic uses glow, minimal soft, bold grid; over plain the hero draws its own wash.
backgroundColordefault"oklch(0.62 0.14 275)"stringThe tint and glow color of the main background; defaults to the tone color when tone is not neutral.
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.
layoutdefault"split""split" | "centered"split: the form left, channels and hours right (stacked on phones); centered: the channels in a row above a centered form. Applies to the classic design.
topicsdefault"CONTACT_TOPICS"ContactTopic[]{ value, label, description?, icon? } topic cards of the form.
companySizesdefault"CONTACT_COMPANY_SIZES"ContactSizeOption[]{ value, label } options of the company size select; an empty array hides it.
channelsdefault"CONTACT_CHANNELS"ContactChannel[]{ kind: email | phone | chat | link, title, description?, value?, href?, icon? }; email and phone values get a copy button, chat shows Start a chat.
hoursdefault"CONTACT_HOURS"ContactHours{ timeZone, days, open, close, label }: when someone answers; drives the Open now / Closed status.
officesdefault"CONTACT_OFFICES"ContactOffice[]{ city, country, address, timeZone, tag?, phone?, description? }: New York, London and Berlin.
faqdefault"CONTACT_FAQ"FaqItem[]Questions of the short FAQ (FaqSection items).
logosdefault"CONTACT_LOGOS"LogoCloudItem[]Customer wordmarks of the logo row.
labelsdefault"DEFAULT_CONTACT_PAGE_LABELS"Partial<ContactPageLabels>Every visible string, including the validation messages.
defaultTopicdefault"sales"stringThe topic selected on load; "" makes the visitor pick one.
requireWorkEmaildefaultfalsebooleanRejects free mail domains like gmail.com or outlook.com.
onSubmit(values: ContactFormValues) => (void | Promise<unknown>)Sends { name, email, company, companySize, topic, message, consent }; a promise keeps the button loading, a rejection shows labels.failed. Without it the page waits 900 ms and confirms.
onOpenChat() => voidRuns on Start a chat (open your chat widget); without it the button links to chatHref.
chatHrefdefault"/help"stringWhere Start a chat goes when there is no onOpenChat.
privacyHrefdefault"/legal/privacy"stringThe privacy policy link under the form.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The selected topic card, the consent box, the selected office and the map pin.
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"Send message; brand is the marketing orange.
radiusdefault"md""none" | "sm" | "md" | "lg" | "full"Corners of the fields and topic cards (cards stop at lg).
showChannelsdefaulttruebooleanThe email, phone and chat channels.
showHoursdefaulttruebooleanOffice hours with the live open or closed status.
showOfficesdefaulttruebooleanThe offices band.
showMapdefaulttruebooleanThe drawn map next to the offices; off shows the offices as a row of cards.
showFaqdefaulttruebooleanThe short FAQ section built from faq.
showLogosdefaulttruebooleanThe customer logo row under the form.
headerdefaulttruebooleanThe marketing header; off inside a site layout.
footerdefaulttruebooleanThe marketing footer.
headerPropsPartial<MarketingHeaderProps>Passed to MarketingHeader.
footerPropsPartial<MarketingFooterProps>Passed to MarketingFooter.
animateIndefaulttruebooleanThe heading, form and channels rise in once on mount; off in thumbnails and under reduced motion.
localedefault"en-US"stringIntl locale for the local times and the opening hours (9 AM or 09:00).
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for the header, footer and inner links (next/link in an app).
classNamestringClasses for the root.
classNamesPartial<Record<ContactPageSlot, string>>Classes for header, hero, form, success, channels, hours, offices, map, faq, logos and footer.
Parts
getContactOpenState
functiongetContactOpenState(hours, date?): { open, closesAt?, opensIn? } in the hours' time zone; what the Office hours status shows.
CONTACT_PAGE_SAMPLE
constantAll the sample content in one object: topics, companySizes, channels, hours, offices, faq and logos.
CONTACT_TOPICS
constantSales, Support, Partnerships and Press with lucide icons.
CONTACT_COMPANY_SIZES
constantFive company size ranges.
CONTACT_CHANNELS
constantsales@acme.com, support@acme.com, a New York phone number and live chat.
CONTACT_HOURS
constantMonday to Friday, 9 AM to 6 PM in New York.
CONTACT_OFFICES
constantNew York (headquarters), London and Berlin.
CONTACT_FAQ
constantFour questions people ask before writing.
CONTACT_LOGOS
constantThe customer wordmarks (LOGO_CLOUD_SAMPLE).
DEFAULT_CONTACT_PAGE_LABELS
constantThe English strings.
CONTACT_PAGE_DESIGNS
constantThe design names, classic first: ["classic", "minimal", "bold"].
ContactPageDesign
type"classic" | "minimal" | "bold".
ContactPageProps
typeProps of ContactPage.
ContactFormValues
type{ name, email, company, companySize, topic, message, consent }: what onSubmit receives.
ContactChannel
typeOne way to reach the team.
ContactOffice
typeOne office with its address and time zone.
Examples
Minimal design
design="minimal": a transparent header, the form right on the page beside a plain channel list, no cards or band, on a soft backdrop.
Bold design
design="bold": huge heavy type on a grid, the channels and hours on a big inverted panel beside a floating form.
Centered with brand actions
layout centered: the channels in a row above a centered form; tone and ctaTone brand; Start a chat runs onOpenChat.
Support first, work email required
Starts on Support with work emails required (try a gmail.com address), offices as a row of cards without the map.
Inside a site layout
No header, footer, offices or logos: the form, the channels and the FAQ.
When sending fails
onSubmit rejects: after the spinner the form keeps everything and shows the error above Send message.
Dependencies
Files
- components/templates/contact-page.tsx
- components/templates/contact-page-data.ts
FAQ
Is the React Contact 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 Contact Page?
Run npx wingo-ui@latest add contact-page. It also adds the Wingo UI items it builds on (Marketing Section, Marketing Header, Marketing Footer, FAQ Section, Logo Cloud and 13 more) and the npm packages motion and lucide-react. With shadcn, run npx shadcn@latest add https://wingo-ui.com/r/contact-page.json.
How does Contact Page behave on phones?
Pick a topic (Sales, Support, Partnerships, Press) as cards with arrow keys or a tap, then fill in name, work email, company, company size (a bottom sheet on phones) and a message with a live character counter, and tick the consent box.
See also
Related guides
- Nextjs Agency Template That Turns Visitors Into Briefs
Build it: screens and apps8 min read
- Nextjs Portfolio Template That Wins Clients
Build it: screens and apps9 min read
- Nextjs Contact Form That Sends Email and Blocks Spam
Build it: screens and apps10 min read
- SaaS Website Template: The 7 Pages Beyond the Home Page
Build it: screens and apps20 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.