TOC
页面内导航 — 带动画活动指示器和层级感知缩进的滚动追踪。
安装
npx @cloudflare/nimbus-docs add tocyarn dlx @cloudflare/nimbus-docs add tocpnpm dlx @cloudflare/nimbus-docs add tocbunx @cloudflare/nimbus-docs add toc预览
本页内容
<TOC
headings={[
{ depth: 2, text: "快速开始", slug: "getting-started" },
{ depth: 2, text: "配置", slug: "configuration" },
{ depth: 3, text: "侧边栏", slug: "sidebar" },
{ depth: 3, text: "搜索", slug: "search" },
{ depth: 2, text: "部署", slug: "deployment" },
]}
/>API 参考
组件接受的全部属性,均源自单一声明。
| Prop | Type |
|---|---|
headingsrequired | TOCItem[] |