Slot for action items on the right side of the header. Expects elements of type zeta-icon-button or zeta-action-menu-button.
Shows the app switcher icon. Make true to show the app switcher icon.
The initials to display within the user icon.
Slot for menu items on the left side of the header. Expects elements of type zeta-button or zeta-dropdown-menu-button.
The name to show in the header, next to the user icon.
The platform name text on the header.
Shows the search bar. Make true to show the search bar.
Autoset the theme to dark mode for this component.
Static
stylesProtected
updatedChecks the slots for items after the component has been updated. This ensures that any changes to the slotted content are detected and the state is updated accordingly.
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.
Slot
menu-items - Slot for menu items on the left side of the header. Expects elements of type zeta-button or zeta-dropdown-menu-button.
Slot
action-items - Slot for action items on the right side of the header. Expects elements of type zeta-icon-button or zeta-action-menu-button.
Slot
user-avatar - Slot for user avatar. Input should be of type zeta-avatar. You must set the size prop to xxs.
Figma
https://www.figma.com/file/JesXQFLaPJLc1BdBM4sisI/🦓-ZDS---Components?node-id=23144-118110
Storybook
https://design.zebra.com/web/storybook/?path=/docs/components-global-header--docs
Example