# Portfolio Blog and Writing: Article Table of Contents

A long form article layout pairing a sticky numbered table of contents and publish meta with a prose column of titled sections.

- Page: https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/article-toc
- Collection: [Portfolio](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro), Standard tier
- Group: [Blog and Writing](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/article-toc.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/portfolio-pro-blog-sections-article-toc
```

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

- Installs to: `@/components/blocks/portfolio-pro/blog-sections/article-toc`

## About this block

Article Table of Contents is the reading layout for a long
essay: a topic label and heading up top, then a two column
body. The left column is a sticky rail holding a numbered
table of contents where each entry links to its section and
the first entry reads as active, plus a ruled meta card with
the published date, last updated date, and read time. The
right column is a prose article of titled sections, each
with a heading and its paragraphs.

Sections are one array that feeds both the contents rail and
the article body, so the numbered links and the section
anchors always stay in sync. The rail is sticky on large
screens, keeping the table of contents in view as the reader
moves down a long piece.

## When to use

Reach for this block when an essay is long enough that
readers need a map, and you want a classic docs style
reading layout rather than a plain column. The installer
swaps the section headings, the paragraphs, and the meta
values for their real content.

A natural flow around it on a Portfolio Pro page:

**Before**

- [Article header](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections)
- [About](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/about-sections)

**After**

- [Newsletter signup](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/newsletter-sections)
- [Footer](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/footers)

## What you can display

One strong use is a long form essay with a contents rail.
Other uses:

- **Documentation page.** Each section a topic, the rail
  jumping between reference entries.
- **Case study writeup.** Each section a project phase, the
  meta tracking timeline and scope.
- **Guide or tutorial.** Each section a step, the numbered
  rail marking progress through the walkthrough.

> Tip: keep section headings short and parallel; the rail
> reads as a real table of contents only when each entry
> fits one clean line.

## More in Portfolio Blog and Writing

- [Archive By Year](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/archive-by-year)
- [Article Body](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/article-body)
- [Article Series](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/article-series)
- [Author Bio Card](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/author-bio-card)
- [Blog Categories](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/blog-categories)
- [Blog Post Grid](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/blog-post-grid)
- [Blog Post Header](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/blog-post-header)
- [Blog Sidebar Layout](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/blog-sidebar-layout)
- [Featured And List](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/featured-and-list)
- [Featured Post](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/featured-post)
- [Link Roundup](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/link-roundup)
- [Magazine Blog Grid](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/magazine-blog-grid)
- [Most Read List](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/most-read-list)
- [Newsletter Issues](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/newsletter-issues)
- [Post List Rows](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/post-list-rows)
- [Published Elsewhere](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/published-elsewhere)
- [Read Next Posts](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/read-next-posts)
- [Recent Writing](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/recent-writing)
- [Tag Filter Blog](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/tag-filter-blog)
- [Three Card Row](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/three-card-row)
- [Writing With Topics](https://www.shadcn-ui-blocks.com/blocks/portfolio-pro/blog-sections/writing-with-topics)
