Layout
TwFooter
TwFooter is an accessible Blazor page footer with columns of links, a brand slot, free-form content and a bottom row for copyright and legal links.
Last updated
Basic usage
TwFooter draws a page footer from data. Pass Sections, each a title and its links, and every section becomes a column. A link can be written as a label and an address, so a whole footer fits in a few lines.
Copyright and legal links
Copyright and BottomLinks fill a row along the bottom, under a divider. Either can be used alone, and with no sections the row is the whole footer.
RAZOR
<TwFooter Copyright="© 2026 Acme Ltd. All rights reserved." BottomLinks="@_legal" />Brand, content and extras
Three slots take your own markup.
BrandContent sits above the sections, for a logo and a line about the company. ChildContent comes after the sections, for anything the data model does not cover, such as a newsletter form. BottomContent joins the bottom row, for social links or a language picker.
Icons and links that open elsewhere
Use the full
FooterLink to give a link an Icon or set OpensInNewTab. A link that opens in a new tab tells assistive technology so, and is given rel="noopener noreferrer".
Heading level
Section titles are real headings, so they appear in a screen reader's heading list. They are level 2 by default. Set
HeadingLevel so they follow on from the headings above the footer on your page.
RAZOR
<TwFooter Sections="@_sections" HeadingLevel="3" />Accessibility
The component renders a
footer element, which is the page's content information landmark as long as it is not inside an article, section or main. Use one per page. The sections sit in a navigation landmark named "Footer links"; change the name with NavigationLabel if the page has another landmark with the same name. Each section is a heading followed by a list named by that heading, so the group and the number of links in it are announced. Give the footer itself a name with AriaLabel if the page has more than one.
Every link is an ordinary tab stop in reading order. The focus outline takes the footer's own text color, so it stays visible on any background a theme gives it. Icons beside links are decorative and hidden from assistive technology.
Theme configuration
Styling is controlled by
TwBlazorTheme.Components (a TwFooterTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
Full reference: TwFooterTheme on the API docs.