199
A documentation site with a top nav, collapsible sidebar, code samples whose language choice follows you across the page, a table of contents that tracks your scroll, ⌘K search over pages and headings, and prev and next cards.
akadocumentation·docs·developer portal
Run this in any project set up for the shadcn CLI. It copies the Docs Site source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/docs-site.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { DocsSite } from "@/components/docs-site";
export default function Page() {
return <DocsSite />;
}A free React screen in the Dev collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Docs Site source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| product | string | "Kestrel" |
| version | string | "v2.4" |
| pages | DocsPage[] | defaultPages |
| initialPage | string | "retries" |
| dashboardHref | string | — |
| editHref | (pageId: string) => string | — |
| className | string | — |