Table of Contents
Displays an auto-generated table of contents for the current page based on heading elements.
<h3 id="toc">Table of Contents</h3>
<RadzenText Anchor="current-page#heading">Heading</RadzenText>
<RadzenToc Selector="#toc">
<RadzenTocItem Selector="#toc" Text="Table of Contents" />
<RadzenTocItem Selector="#heading" Text="Heading" />
</RadzenToc>
Sticky TOC
link
To make the component stick to the top of a scrolling container, add Style="position: sticky; top: 0;".
Title
Section 1
link
Section 1 content
Section 2
link
Section 2 content
Section 3
link
Section 3 content
Section 4
link
Section 4 content
Section 5
link
Section 5 content
HTML heading
HTML heading content
Copyright © 2026 Radzen Ltd. All rights reserved.
Section 1
Section 2
Section 3
Section 4
Section 5
HTML Heading
Orientation
link
RadzenToc supports a horizontal layout with built-in styling. Just set Orientation="Orientation.Horizontal" to enable it. In this demo the horizontal TOC is hidden on devices with screen width less than 1024px using utility CSS classes class="rz-display-none rz-display-md-flex".
Section 1
Section 2
Section 3
Section 4
Section 5
HTML Heading
Title
Section 1
link
Section 1 content
Section 2
link
Section 2 content
Section 3
link
Section 3 content
Section 4
link
Section 4 content
Section 5
link
Section 5 content
HTML heading
HTML heading content
Copyright © 2026 Radzen Ltd. All rights reserved.
Section 1
Section 2
Section 3
Section 4
Section 5
HTML Heading
All the tools in one place
Save Hours on Every Project
With Radzen Blazor subscription you get the full toolkit, including:
support
Dedicated support backed by proven expertise
palette
Premium themes and theme editor
widgets
Ready-to-use UI blocks
dashboard_customize
Complete app templates
format_shapes
Visual design-time-experience
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT