TableOfContents
“本页内容”:每个标题一行,以细线分隔;当前可见的标题使用正文颜色,上方有一条墨色线,其他标题淡化显示。
<TableOfContents items={items} active="examples" className="w-200" />import { TableOfContents } from "@logicplanes/kaeso-ui";属性
activestring受控的当前 ID;否则跟随滚动位置。
itemsTocItem[]要列出的标题及其层级。
titlestring默认为 LocaleProvider 语言中的“本页内容”。