Marketing top app bar
An identity-only app bar with the product icon and name.
import 'material-next-web-components/marketing.js';On this page
Overview
<mnw-marketing-top-app-bar> is a 64dp identity bar with the app icon and name
linking home. It contains no GitHub action, context label or trailing actions.
The full marketing shell uses the shared app shell instead, with a connected or
closed navigation drawer, the same clean product heading and an actions slot
for pages that need trailing actions.
Live demo
<mnw-marketing-top-app-bar
name="Pocket Notes"
icon="/logos/icon.svg"
href="./"
></mnw-marketing-top-app-bar>API
The hub's identity-only top app bar: the app icon and name. It reflects scrolled while the page is
scrolled, which gives it the raised container tone.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
name | name | string | '' | The app's name, linked to href. |
icon | icon | string | '' | URL of the app's icon, 32px; omitted when empty. |
href | href | string | './' | Where the brand links to. |
scrolled | scrolled | boolean | false | Raised tone; set by the element while the window is scrolled. |
scrolled follows the window's scroll position. The bar uses a raised surface
once content scrolls beneath it. The brand is an accessible link; its icon is decorative.