Content widget

Table of Contents

A clickable outline of the page’s headings that highlights where the reader is.

Build it with your AI

“Add a table of contents of the h2 and h3 headings, sticky in the sidebar of long posts.”

Live demo

See it working

This is the real widget, not a picture

Table of contents

Settings

32 settings in three tabs

Every setting below is in the editor — and available to your AI through get_widget_schema.

Content

15 settings

Table of contents

Title

Title HTML tag

Headings to include

Container selector

Exclude selector

Marker

Nest sub-headings

Minimum headings

Behaviour

Collapsible

Start collapsed

Smooth scroll

Scroll offset (px)

Highlight the current section

Sticky

Sticky distance from top

Design

17 settings

Box

Background

Border

Border radius

Padding

Shadow

List max height

Title

Typography

Color

Divider color

Spacing

List

Typography

Space between items

Sub-level indent

Collapse icon color

Color

Marker color

Indicator color

Behaviour

shared

On every element

Spacing & position

Background & border

Animations

Motion & effects

Scroll & mouse effects

Visibility

Conditions

Interactions

Attributes & CSS

Build it with AI

Just describe what you want

Your AI looks up the Table of Contents settings over MCP and writes the element for you — real, editable and on brand.

Claude · connected to your site

You

Add a table of contents of the h2 and h3 headings, sticky in the sidebar of long posts.

Claude · using Uncoder

Done — it’s on your site and fully editable.

  • Table of Contents added where you asked
  • Styled with your Design System
  • Checked on tablet and mobile
  • get_widget_schema
  • edit_elements
  • audit_page

What the AI writes

table-of-contents.jsonJSON
{ "type": "table-of-contents", "settings": {  } }

Free · GPL · No account

Your next site is one prompt away

Install Uncoder, connect your AI and describe what you want. Every page it builds stays yours to edit.