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.
OptionalplatformThe platform name text on the header.
Shows the search bar. Make true to show the search bar.
user-info-click - Fired when the user info button is clicked. hamburger-menu-click - Fired when the hamburger menu button is clicked.
Autoset the theme to dark mode for this component.
StaticstylesProtectedupdatedChecks 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
platform-name - Slot for the platform name in the header. Falls back to the platformName property if not provided.
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.
Slot
logo - Slot for a custom logo to replace the default Zebra logo.
Part
logo - The container for the logo in the header. By default, this will contain the Zebra logo, but if you use the "logo" slot, your custom logo will be placed here instead.
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