Docs Home Page React template for Tailwind CSS v4
v1.1.0Updated in 1.9.0
A React docs portal home template: a search palette, quick-start cards, popular guides, API code samples, SDK tiles and the changelog.
Press the big search field in the hero, the Search field in the header, or Cmd+K / Ctrl+K anywhere: a search palette opens with results grouped under Guides, API reference, SDKs and Changelog. Type to filter (matches are bold), move with the arrow keys, Enter opens the page and Escape closes; the Popular chips under the field open it with that word already typed. On phones the palette is a full-height sheet. The four quick-start cards, every guide, SDK tile, changelog entry and help option are one link each with the focus ring on the card. In the API section the curl, JavaScript and Python tabs switch the code sample (arrow keys move between tabs) and its copy button copies the snippet; each SDK tile copies its install command. The status option pulses green. The header keeps Guides as a dropdown and folds into a menu sheet below 1024px; cards stack to one column on phones without sideways scrolling.
Docs Home Page is a Pro 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 docs-home-page, together with Feature Grid, Hero Section, Marketing Footer, Marketing Header, Marketing Section and 10 more and the npm package 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 docs-home-pageDocs Home Page is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import DocsHomePage from @/components/templates/docs-home-page.
// app/(docs)/docs/page.tsx
"use client"
import Link from "next/link"
import { DocsHomePage } from "@/components/templates/docs-home-page"
import { DOCS_SEARCH } from "@/components/templates/docs-home-page-data"
export default function DocsRoute() {
return (
<DocsHomePage
linkComponent={Link}
searchGroups={DOCS_SEARCH}
onSearchSelect={(item) => console.log("search pick", item.href)}
/>
)
}Props
navItemsdefault"DOCS_NAV"NavMenuItem[]The header links: Guides (a dropdown), API, SDKs, Changelog and Support.
quickStartdefault"DOCS_QUICK_START"DocsQuickStart[]The starting-point cards: { icon, title, description, href }.
guidesdefault"DOCS_GUIDES"DocsGuide[]Popular guides: { title, description, category, minutes, href }.
codeSamplesdefault"DOCS_CODE_SAMPLES"DocsCodeSample[]The API tabs: { value, label, language, filename, code }.
apiFactsdefault"DOCS_API_FACTS"{ label: string; value: string }[]The four tiles beside the code: base URL, auth, rate limit, format.
sdksdefault"DOCS_SDKS"DocsSdk[]SDK tiles: { letters, name, install, version, href, color }.
changelogdefault"DOCS_CHANGELOG"DocsChangelogEntry[]The latest entries: { version, date, kind, title, description, href }.
helpdefault"DOCS_HELP"DocsHelpOption[]Community, support and status: { icon, title, description, meta, action, href, live? }.
searchGroupsdefault"DOCS_SEARCH"DocsSearchGroup[]What the search palette searches: { label, items: { title, description?, href, keywords? }[] }.
popularSearchesdefault"DOCS_POPULAR_SEARCHES"string[]Chips under the hero search that open it with that query.
labelsdefault"DEFAULT_DOCS_HOME_PAGE_LABELS"Partial<DocsHomePageLabels>Every visible string.
searchShortcutdefault"mod+k"stringOpens the search from anywhere and shows on the fields; empty binds nothing.
defaultSearchOpendefaultfalsebooleanThe search palette starts open.
searchOpenbooleanControlled open state of the search palette.
onSearchOpenChange(open: boolean) => voidCalled when the palette opens or closes.
onSearchSelect(item: { title, href, group }) => voidCalled when a result is picked; the page also navigates to its href.
defaultLanguagedefault"curl"stringThe code tab the API section opens on (a codeSamples value).
showQuickStartdefaulttruebooleanThe quick-start cards.
showGuidesdefaulttruebooleanThe popular guides.
showApidefaulttruebooleanThe API section with code tabs.
showSdksdefaulttruebooleanThe SDK tiles built from sdks, each with its install command.
showChangelogdefaulttruebooleanThe latest changelog entries.
showHelpdefaulttruebooleanCommunity, support and status.
headerdefaulttruebooleanThe sticky docs header; turn it off when the page sits in a site layout.
footerdefaulttruebooleanThe marketing footer.
headerPropsPartial<MarketingHeaderProps>Passed to MarketingHeader (replaces the docs actions when you pass actions).
footerPropsPartial<MarketingFooterProps>Passed to MarketingFooter.
designdefault"classic""classic" | "minimal"The whole page's look. classic follows the layout props on a dotted backdrop; minimal: a transparent header, a soft wash, the copy and search beside a drawn terminal, the starting points as a plain list, guides, SDKs and help as flat rows under hairlines, API facts on soft tiles, no bands, tighter sections and a simple footer. headerProps and footerProps still win.
backgrounddefault"dots""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.
heroBackgrounddefault"none""grid" | "glow" | "none"Faint lines, a soft light in the tone, or nothing behind the hero, over the page background. Without one it is grid when background is plain and none otherwise. Applies to the classic design.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"Icon tiles, the code tabs and the announcement badge.
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The solid buttons (Get an API key, API reference).
codeAccentdefault"#F75001"stringThe code block theme color.
animateIndefaulttruebooleanThe hero rises in once on mount; off in thumbnails and under reduced motion.
localedefault"en-US"stringIntl locale for the changelog dates.
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for every link and search result (next/link in an app); default the LinkProvider's.
classNamestringClasses for the root.
classNamesPartial<Record<DocsHomePageSlot, string>>Classes for hero, search, quickStart, guides, api, sdks, changelog and help.
Parts
DocsGuideCard
componentOne guide as a single stretched link: category, reading time, title and summary. Takes article props.
guideDocsGuideThe guide.
minutes(minutes: number) => string"6 min".
linkComponentLinkComponentThe router link.
DocsSdkTile
componentAn SDK as a letter tile, name, version and a copyable install command; the tile links to the SDK docs. Takes article props.
sdkDocsSdkThe SDK.
copyLabelstringThe copy button's label.
linkComponentLinkComponentThe router link.
DOCS_NAV
constantThe docs header navigation.
DOCS_POPULAR_SEARCHES
constantWebhooks, Rate limits, Pagination and OAuth.
DOCS_QUICK_START
constantGet started, Guides, API reference and SDKs.
DOCS_GUIDES
constantSix popular Acme API guides.
DOCS_CODE_SAMPLES
constantCreate a task with curl, JavaScript and Python.
DOCS_API_FACTS
constantBase URL, auth, rate limit and format.
DOCS_SDKS
constantJavaScript, Python, Go, Ruby, PHP and Swift.
DOCS_CHANGELOG
constantThe three latest API changes.
DOCS_HELP
constantCommunity, Support and Status.
DOCS_SEARCH
constantThe search index, grouped by section.
DEFAULT_DOCS_HOME_PAGE_LABELS
constantThe English strings.
DocsSearchItemPicked
type{ title, href, group }: what onSearchSelect receives.
DocsQuickStart
type{ icon, title, description, href }.
DocsGuide
type{ title, description, category, minutes, href }.
DocsCodeSample
type{ value, label, language, filename, code }.
DocsSdk
type{ letters, name, install, version, href, color }.
DocsChangelogEntry
type{ version, date, kind, title, description, href }.
DocsHelpOption
type{ icon, title, description, meta, action, href, live? }.
DocsSearchGroup
type{ label, items: DocsSearchItem[] }.
DocsSearchItem
type{ title, description?, href, keywords? }.
DOCS_HOME_PAGE_DESIGNS
constantThe design names, classic first: ["classic", "minimal"].
DocsHomePageProps
typeProps of DocsHomePage.
DocsHomePageDesign
type"classic" | "minimal".
Examples
Minimal design
design="minimal": the search beside a drawn terminal, flat rows under hairlines, no gray bands and a simple footer.
Search open
The palette open over the page, results grouped by section; type, arrow through and press Enter.
Brand tone, glow
The marketing orange on icon tiles, tabs and buttons, with an orange page glow behind the hero.
Python first, blue code
The API section opens on the Python tab with a blue code theme.
Compact, inside a docs layout
No header or footer, no SDKs or changelog: the landing inside an existing docs shell.
Dependencies
Files
- components/templates/docs-home-page.tsx
- components/templates/docs-home-page-data.ts
FAQ
Is the React Docs Home Page template free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Docs Home Page?
Run npx wingo-ui@latest add docs-home-page. It also adds the Wingo UI items it builds on (Feature Grid, Hero Section, Marketing Footer, Marketing Header, Marketing Section and 10 more) and the npm package lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/docs-home-page.
How does Docs Home Page behave on phones?
On phones the palette is a full-height sheet. The header keeps Guides as a dropdown and folds into a menu sheet below 1024px; cards stack to one column on phones without sideways scrolling.
See also
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.