Block

Docs Layout.

A documentation page shell: header with search, grouped sidebar nav, a Prose article and an On this page list. On phones the nav moves into a sheet.

Installation#

$npx lanterncn add docs-layout

This copies all 5 files into components/docs-layout and installs every component it uses. With the shadcn CLI: npx shadcn@latest add httptim/lantern-ui/docs-layout.

Usage#

Render it from any page.

import DocsLayout from "@/components/docs-layout/docs-layout";

export default function Page() {
  return <DocsLayout />;
}