# Modern SaaS Docs Page: Sidebar Docs Shell

A complete docs page shell: sidebar with mini search and mono section labels, prose column with terminal blocks and working copy buttons, and an on this page rail.

- Page: https://www.shadcn-ui-blocks.com/blocks/modern-saas/docs-pages/sidebar-docs-shell
- Collection: [Modern SaaS](https://www.shadcn-ui-blocks.com/blocks/modern-saas), Premium tier
- Group: [Docs Pages](https://www.shadcn-ui-blocks.com/blocks/modern-saas/docs-pages)
- Created: 2026-07-27
- Preview image: https://www.shadcn-ui-blocks.com/blocks/modern-saas/docs-pages/sidebar-docs-shell.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/modern-saas-docs-pages-sidebar-docs-shell
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: depth-button, input, surface
- Installs to: `@/components/blocks/modern-saas/docs-pages/sidebar-docs-shell`

## About this block

Sidebar Docs Shell is a whole docs page for a release tool, in three columns.
The sidebar holds a small search field and five groups of links under mono
labels. The article runs from a breadcrumb, title and lede through two
sections with terminal blocks and a callout, and ends on previous and next
cards. The rail lists the sections on this page and asks whether the page
helped, with Yes and No ghost pills.

The article stands alone below lg, the sidebar joins from lg and the rail
from xl. Each terminal block has a working Copy button that writes its lines
to the clipboard and reads Copied for a moment. The rest is static: the
search has no handler, the current page is set by hand, and the Yes and No
pills do nothing yet.

## When to use

Use it for the docs of a developer tool or any app with a CLI or an API,
where readers move through pages in order and copy commands as they go.
Below lg the sidebar is hidden with no menu in its place, so add one for
phones.

A natural flow around it on a Modern SaaS page:

**Before**

- [Navbars](https://www.shadcn-ui-blocks.com/blocks/modern-saas/navbars) to carry the site links above the
  docs

**After**

- [Footers](https://www.shadcn-ui-blocks.com/blocks/modern-saas/footers) to close the page

## What you can customize

- **Sidebar.** Edit the `sidebar` array: each group has a `label` and its
  `items`. Every link points to `#`, and the first item is styled as
  current; set both from your router.
- **Article.** The headings, prose, callout and the previous and next cards
  are written in the markup. `Terminal` takes `lines`, shown one per line and
  copied together. Give each heading an `id` so the rail can jump to it.
- **Rail.** Edit `onThisPage`: a label, an `href` to a heading id and an
  optional `active` flag. Only the first two point at real headings.

> Tip: keep each terminal block to the commands a reader runs in one go, so
> a single copy gives them something that works when pasted.
