Header

The Header Main Navigation provides users with quick access to the primary sections of a website or application. Positioned at the top of the page, it helps users understand the site's structure and easily move between major areas.

Mobile View: To see the mobile header behavior, use your browser's developer tools and switch to mobile view (responsive design mode).

Anonymous State

The anonymous header is designed for users who are not signed in. It typically provides access to general navigation, informational content, and clear calls to action such as Sign In or Register, encouraging users to authenticate and access personalized features.

Breakpoints

Authenticated State

The authenticated header displays user information and provides access to profile management, identity switching for users with multiple roles (individual and business), and sign-out functionality.

Breakpoints

desktop: single identity

mobile: single identity

User with single identity. Profile button shows avatar and name.

desktop: multi-identity with switcher

mobile: multi-identity with switcher

User with multiple identities (individual and business). Profile menu includes identity switcher.

States

Desktop

default (with active link: option1)

hover

Hover over the logo or navigation items to see hover states.

full-menu: active

Click on a navigation dropdown to see the full menu with multiple columns.

compact-menu: active

Click on a navigation dropdown to see the compact single-column menu.

services: active

Click the grid icon (⋮⋮⋮) to see the platform services dropdown.

help: active

Click the help icon (?) to see the help dropdown menu.

Variations

compact: navigation-none

Header without navigation links, only actions.

full header

Full mode with navigation displayed below the main header bar.

hide links on search

Navigation links are hidden when search is active instead of moving below.

Event Handling

All interactive elements emit events that can be handled in parent components.

razor
<FodHeader
    OnLinkClick="HandleLinkClick"
    OnPlatformClick="HandlePlatformClick"
    OnSearch="HandleSearch"
    OnHelpLinkClick="HandleHelpLinkClick"
    OnLanguageChange="HandleLanguageChange"
    OnAuthClick="HandleAuthClick"
    OnSecondaryClick="HandleSecondaryClick"
    OnProfileClick="HandleProfileClick"
    OnIdentityChange="HandleIdentityChange"
    OnSignOut="HandleSignOut"
    OnMobileMenuOpen="HandleMobileMenuOpen"
    OnMobileMenuClose="HandleMobileMenuClose" />

API Reference

FodHeader component properties and their descriptions.

No properties defined.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.