169
A docs page shell: grouped sidebar, readable article with tabbed code and callouts, a reading-progress hairline and a right-hand outline whose marker glides to the section you're reading; the sidebar becomes a drawer on phones.
akadocumentation·docs·table of contents
Run this in any project set up for the shadcn CLI. It copies the Docs Layout source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/docs-layout.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 { DocsCallout } from "@/components/docs-layout";
export default function Page() {
return <DocsCallout />;
}A free React block in the Apps collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Docs Layout source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| tone | keyof typeof CALLOUT | "note" |
| title | string | — |
| childrenrequired | ReactNode | — |