Skip to main content

Global Header

The Header is the topmost, persistent navigation bar across the application. It contains global actions and utilities such as the product logo, primary navigation, search, and user profile access. It anchors the user in the application and remains consistent across all views.

https://www.figma.com/design/JesXQFLaPJLc1BdBM4sisI/%F0%9F%A6%93-ZDS-Zeta---Components?node-id=36505-1553&t=zQGdS7IVRlDXO4ye-4

Demo

zeta-web v0.12.1
Web Components


A header component which can contain branding, navigation, search, and user profile actions. Header will only allow a maximum of 6 menu items and 6 action items. Any additional items will be hidden. If you have a maximum amount (6) of menu and action items, the search bar will be hidden at a screen size of 1440px or smaller.

Storybook

https://design.zebra.com/web/storybook/?path=/docs/components-global-header--docs

Slots

NameDescriptionType
menu-itemsSlot for menu items on the left side of the header. Expects elements of type zeta-button or zeta-dropdown-menu-button.text
action-itemsSlot for action items on the right side of the header. Expects elements of type zeta-icon-button or zeta-action-menu-button.text
user-avatarSlot for user avatar. Input should be of type zeta-avatar. You must set the size prop to xxs.text

Attributes

NameDescriptionTypeDefault
data-themeAutoset the theme to dark mode for this component.string"dark"
platformNameThe platform name text on the header.String"Platform Name"
nameThe name to show in the header, next to the user icon.String"Name"
initialsThe initials to display within the user icon.String"RK"
appSwitcherShows the app switcher icon. Make true to show the app switcher icon.Booleanfalse
searchbarShows the search bar. Make true to show the search bar.Booleanfalse

Inherited Attributes

NameDescriptionTypeDefaultInherited From
roundedWhether the component is rounded or sharp.When true, rounded will set the border radius of the first child, and any children with class 'contourable-target' to --radius-minimal.Otherwise, this value will be --radius-none.boolean | undefinedtrueContourable