Public Header

The sticky header of public pages: the brand, the links, the language and theme preferences and the actions; below 768px they fold behind a burger.

A block from @tectra-ng/blocks — it comes with tectra-ng, or alone: npm install @tectra-ng/blocks.

Features4APIThemingAccessibility

Basic

Links go in txPublicHeaderNav, buttons in txPublicHeaderActions; the language and theme preferences sit between them. Scroll the frame: the header stays on top and the page shows through its glass.

Northwind

Ship reports your team reads

Scroll this frame: the header stays on top and the content shows through its glass.

Dashboards
Ready in a minute
Alerts
Ready in a minute
Exports
Ready in a minute
Sharing
Ready in a minute
Schedules
Ready in a minute
Comments
Ready in a minute
Goals
Ready in a minute
Forecasts
Ready in a minute
Audit log
Ready in a minute

Responsive

responsive="container" makes the header follow its own width instead of the window — here the device frame. Below 768px a burger opens a panel with the links, the preferences as labelled rows and full-width buttons; it closes on a link, on Escape and when the header grows wide again.

PhoneTabletDesktop
Northwind

Open the menu on the phone: the links, the preferences and the buttons move into a panel.

Without preferences

[preferences]="false" hides the language and theme preferences; without logo the brand is just the name.

Northwind

Design tokens

dt changes the tokens of one header: here taller, on the ground colour, with larger dark links.