Gathering detailed insights and metrics for @material/mwc-top-app-bar
Gathering detailed insights and metrics for @material/mwc-top-app-bar
Gathering detailed insights and metrics for @material/mwc-top-app-bar
Gathering detailed insights and metrics for @material/mwc-top-app-bar
@material/mwc-top-app-bar-fixed
Material Design top app bar web component
@authentic/mwc-top-app-bar
A [Material Components](https://material.io/develop/) top app bar implementation using [Web Components](https://www.webcomponents.org/introduction)
@dev.mohe/mwc-top-app-bar
Material Design top app bar web component
@dev.mohe/mwc-top-app-bar-fixed
Material Design top app bar web component
npm install @material/mwc-top-app-bar
Typescript
Module System
Node Version
NPM Version
TypeScript (55.5%)
SCSS (42.02%)
JavaScript (1.33%)
CSS (0.72%)
HTML (0.44%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Apache-2.0 License
10,151 Stars
4,998 Commits
973 Forks
204 Watchers
22 Branches
131 Contributors
Updated on Jul 13, 2025
Latest Version
0.27.0
Package Id
@material/mwc-top-app-bar@0.27.0
Unpacked Size
60.22 kB
Size
13.28 kB
File Count
16
NPM Version
lerna/3.22.1/node@v18.6.0+arm64 (darwin)
Node Version
18.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
4
3
<mwc-top-app-bar>
IMPORTANT: The Material Web Components are a work in progress and subject to major changes until 1.0 release.
Top App Bars are a container for items such as application title, navigation icon, and action items.
For a fixed position version of this component, see <mwc-top-app-bar-fixed>
Material Design Guidelines: App Bars: Top
1npm install @material/mwc-top-app-bar
NOTE: The Material Web Components are distributed as ES2017 JavaScript Modules, and use the Custom Elements API. They are compatible with all modern browsers including Chrome, Firefox, Safari, Edge, and IE11, but an additional tooling step is required to resolve bare module specifiers, as well as transpilation and polyfills for IE11. See here for detailed instructions.
1<mwc-top-app-bar> 2 <mwc-icon-button icon="menu" slot="navigationIcon"></mwc-icon-button> 3 <div slot="title">Title</div> 4 <mwc-icon-button icon="file_download" slot="actionItems"></mwc-icon-button> 5 <mwc-icon-button icon="print" slot="actionItems"></mwc-icon-button> 6 <mwc-icon-button icon="favorite" slot="actionItems"></mwc-icon-button> 7 <div><!-- content --></div> 8</mwc-top-app-bar>
1<mwc-top-app-bar centerTitle> 2 <mwc-icon-button icon="menu" slot="navigationIcon"></mwc-icon-button> 3 <div slot="title">Title</div> 4 <mwc-icon-button icon="favorite" slot="actionItems"></mwc-icon-button> 5 <div><!-- content --></div> 6</mwc-top-app-bar>
1<mwc-top-app-bar dense> 2 <mwc-icon-button icon="menu" slot="navigationIcon"></mwc-icon-button> 3 <div slot="title">Title</div> 4 <mwc-icon-button icon="file_download" slot="actionItems"></mwc-icon-button> 5 <mwc-icon-button icon="print" slot="actionItems"></mwc-icon-button> 6 <mwc-icon-button icon="favorite" slot="actionItems"></mwc-icon-button> 7 <div><!-- content --></div> 8</mwc-top-app-bar>
1<mwc-top-app-bar prominent> 2 <mwc-icon-button icon="menu" slot="navigationIcon"></mwc-icon-button> 3 <div slot="title">Title</div> 4 <mwc-icon-button icon="file_download" slot="actionItems"></mwc-icon-button> 5 <mwc-icon-button icon="print" slot="actionItems"></mwc-icon-button> 6 <mwc-icon-button icon="favorite" slot="actionItems"></mwc-icon-button> 7 <div><!-- content --></div> 8</mwc-top-app-bar>
1<mwc-top-app-bar prominent dense> 2 <mwc-icon-button icon="menu" slot="navigationIcon"></mwc-icon-button> 3 <div slot="title">Title</div> 4 <mwc-icon-button icon="file_download" slot="actionItems"></mwc-icon-button> 5 <mwc-icon-button icon="print" slot="actionItems"></mwc-icon-button> 6 <mwc-icon-button icon="favorite" slot="actionItems"></mwc-icon-button> 7 <div><!-- content --></div> 8</mwc-top-app-bar>
1mwc-top-app-bar { 2 --mdc-theme-primary: orange; 3 --mdc-theme-on-primary: black; 4}
Name | Description |
---|---|
actionItems | A number of <mwc-icon-button> elements to use for action icons on the right side. NOTE: If using with mwc-drawer , please read note under Standard drawer example. |
navigationIcon | One <mwc-icon-button> element to use for the left icon. |
title | A <div> or <span> that will be used as the title text. |
default | Scrollable content to display under the bar. This may be the entire application. |
Name | Type | Default | Description |
---|---|---|---|
centerTitle | boolean | false | Centers the title horizontally. Only meant to be used with 0 or 1 actionItems . |
dense | boolean | false | Makes the bar a little smaller for higher density applications. |
prominent | boolean | false | Makes the bar much taller, can be combined with dense . |
scrollTarget | HTMLElement | Window | window | Element used to listen for scroll events. |
None
Name | Detail | Description |
---|---|---|
MDCTopAppBar:nav | {} | Fired when the navigationIcon is clicked. |
Name | Default | Description |
---|---|---|
--mdc-top-app-bar-width | 100% | Width of the top-app-bar in relation to the Window. |
Name | Description |
---|---|
--mdc-theme-primary | Background color of the bar |
--mdc-theme-on-primary | Text color of the title, and icon colors |
--mdc-typography-headline6-<PROPERTY> | Styles the typography of the top-app-bar title. |
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
25 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 11/18 approved changesets -- score normalized to 6
Reason
SAST tool is not run on all commits -- score normalized to 6
Details
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More