Skip to content
Layout Footer

Footer

A site footer with top and bottom areas and left, center and right slots.

On this page

Examples

Razor
<div class="w-full overflow-hidden rounded-xl border border-(--klyroo-border)">
    <KlyFooter data-testid="footer">
        <Left>
            <p>Copyright 2026 Acme Inc.</p>
        </Left>
        <ChildContent>
            <nav aria-label="Legal" class="flex items-center gap-4">
                <a href="/docs" class="hover:text-(--klyroo-text) hover:underline">Privacy</a>
                <a href="/docs" class="hover:text-(--klyroo-text) hover:underline">Terms</a>
            </nav>
        </ChildContent>
        <Right>
            <KlyButton Square Variant="ButtonVariant.Ghost" Color="KlyColor.Neutral" Href="https://github.com" Target="KlyLinkTarget.Blank"
                      LeadingIcon='KlyIcons.Named("code", "size-5")' aria-label="Source code" />
        </Right>
    </KlyFooter>
</div>

API

KlyFooter

Site footer with optional top and bottom areas and left, center and right slots.

Parameters

Name Type Description
Class string Classes added to the root element, merged last so they win over the theme.
Ui FooterUi Per-instance class overrides of the slots of the footer, see FooterUi . They are merged after the theme and the Class parameter wins on the root slot.

Slots

Name Type Description
Bottom RenderFragment A full-width area below.
Left RenderFragment Start side: a copyright line, a logo.
Right RenderFragment End side: social links, a language select.
Top RenderFragment A full-width area above, typically a KlyFooterColumns .
ChildContent RenderFragment The middle of the footer: links, a newsletter form.

Ui slots

Ui takes a FooterUi with one class string per slot, merged after the theme.

Slot Styles
Root Classes merged into the root slot of KlyFooter , after the theme and the app configuration.
Top Classes merged into the top slot of KlyFooter , after the theme and the app configuration.
Container Classes merged into the container slot of KlyFooter , after the theme and the app configuration.
Left Classes merged into the left slot of KlyFooter , after the theme and the app configuration.
Center Classes merged into the center slot of KlyFooter , after the theme and the app configuration.
Right Classes merged into the right slot of KlyFooter , after the theme and the app configuration.
Bottom Classes merged into the bottom slot of KlyFooter , after the theme and the app configuration.