sigilUI

Table Of Contents

Link to headings within a document.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { TableOfContents } from "@sigil-ui/components";

Usage

<TableOfContents items={[{ href: "#preview", label: "Preview" }, { href: "#usage", label: "Usage" }]} />

CLI

npx @sigil-ui/cli add table-of-contents

Token Integration

TableOfContents follows the Sigil component rules: styles resolve from var(--s-*), class names are mergeable through className, and the component is exported from @sigil-ui/components.