A top level section displayed at the top of the page
The Masthead is a simple section at the top of the page that allows the developer to communicate the service logo, user profile, notifications, and offer a search bar.
The Masthead component is a main navigational component that resides at the top of an application. It is fixed in place and has a higher stacking order than the rest of the page, so content will flow underneath it on scroll. There should only be one Masthead component per page.
- Container. The Masthead Container wraps the entire Masthead and ensures it stays pinned to the top of the viewport.
- Search. This button triggers the appearance of the Search Bar. When clicked, the page links in the Header.
- Notifications. This icon displays to the user when they have an unread notification. Clicking on the icon will display the Notification Sheet.
- Profile. This button links to the User's profile, including settings.
- App Nav. Works similarly to the Tabset, allowing the user to quickly navigate between multiple application pages.
Aside from the active page links (an example of these states is shown in the Tabset Docs), the Masthead component only has two states. When the Search button is clicked in the top row of the Masthead, the page links are replaced with a full width search bar. Clicking on the Search button again will hide the bar.