Pro
Docs template
Documentation for a developer product: guides with steps and tabbed code, API pages with parameters and live samples, webhooks, errors and rate limits, SDKs and recipes, a changelog, and slash search over all of it.
pnpm dlx shadcn@latest add @caliper/docs-templateWhen to use
Use it for
- Product, API or SDK documentation with reference pages next to guides.
- Long reading that people search, link into and come back to.
- A large site on a router: put DocsLayout in the shared layout and a DocsPage in each page, so the sidebar keeps its scroll, filter and folded sections.
Skip it when
- Marketing pages; use the landing template.
- A handful of help articles; a knowledge base is lighter.
Installation
pnpm dlx shadcn@latest add @caliper/docs-template
Adds its 13 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from DocsTemplate, DocsLayout, DocsPage, DocsHeading, DocsCode, DocsCodeGroup, DocsCallout, DocsSteps, DocsStep, DocsTable, DocsCards, DocsFilter, DocsToolbar, DocsEmpty, DocsHits, DocsRelease, DocsEndpoint, DocsParams, DocsPanes, DocsResponse, DocsSearch, searchDocs, searchExcerpt and highlightMatches.
import { DocsTemplate, DocsLayout, DocsPage, DocsHeading, DocsCode, DocsCodeGroup, DocsCallout, DocsSteps, DocsStep, DocsTable, DocsCards, DocsFilter, DocsToolbar, DocsEmpty, DocsHits, DocsRelease, DocsEndpoint, DocsParams, DocsPanes, DocsResponse, DocsSearch, searchDocs, searchExcerpt, highlightMatches } from "@/components/ui/docs-template"
The worked example comes with Pro
The 1275-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
DocsTemplate
component
DocsLayout
component
DocsPage
component
DocsHeading
component
DocsCode
component
DocsCodeGroup
component
DocsCallout
component
DocsSteps
component
DocsStep
component
DocsTable
component
DocsCards
component
DocsFilter
component
DocsToolbar
component
DocsEmpty
component
DocsHits
component
DocsRelease
component
DocsEndpoint
component
DocsParams
component
DocsPanes
component
DocsResponse
component
DocsSearch
component
searchDocs
component
No props of its own; it accepts the native props of its root element.
searchExcerpt
component
No props of its own; it accepts the native props of its root element.
highlightMatches
component
No props of its own; it accepts the native props of its root element.
Accessibility
It exposes status and group semantics, with aria-current, aria-hidden, aria-label, aria-expanded, aria-controls and aria-keyshortcuts kept in step with state. Changes that matter are announced through a live region.
Keyboard and focus handling comes from Radix dialog: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Motion
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.
Related
- Changelog templateWhat shipped, newest first: dates that stay in view, linkable versions, tag filters with a count and a product view per release.
- Page partsDashboard, password reset and verification screens.
- Onboarding templateA first-run flow of seven steps that says how long it takes, why each step is asked and what your answer will do beside the form, lets you skip what is not needed, saves as you go and ends with what now exists and what is still to do.