Table of contents, from the Widgets group of the nertia component library.
Not yet portable: this section runs on nertia today. Export the recipe or open it in nertia.
npm create nersh@latest my-site -- --site https://nertia.ai/components/widgets/table-of-contents/site.json scaffolds a project from it.{
"slug": "table-of-contents",
"mode": "builder",
"status": "draft",
"skinId": "zinc",
"composition": {
"id": "table-of-contents",
"sections": [
{
"id": "table-of-contents",
"instanceId": "stage-table-of-contents"
}
]
},
"copy": {
"stage-table-of-contents.heading": "On this page",
"stage-table-of-contents.anchor": "toc",
"stage-table-of-contents.items": "[{\"anchor\":\"intro\",\"label\":\"Introduction\"},{\"anchor\":\"details\",\"label\":\"Details\"},{\"anchor\":\"summary\",\"label\":\"Summary\"}]"
}
}